Menu

## OutputStyle extends SymfonyStyle
in package
implements NewLineAware

OutputStyle.php : 11

### Table of Contents

#### Interfaces

NewLineAware

#### Properties

$newLinesWritten : int
  The number of trailing new lines written by the last output.
$output : OutputInterface
  The output instance.

#### Methods

__construct() : void
  Create a new Console OutputStyle instance.
askQuestion() : mixed
getOutput() : OutputInterface
  Get the underlying Symfony output implementation.
isDebug() : bool
  Returns whether verbosity is debug (-vvv).
isQuiet() : bool
  Returns whether verbosity is quiet (-q).
isVerbose() : bool
  Returns whether verbosity is verbose (-v).
isVeryVerbose() : bool
  Returns whether verbosity is very verbose (-vv).
newLine() : void
  {@inheritdoc}
newLinesWritten() : int
  How many trailing newlines were written.
write() : void
writeln() : void
  {@inheritdoc}
trailingNewLineCount() : int

### Properties

#### $newLinesWritten

OutputStyle.php : 23

The number of trailing new lines written by the last output.

`protected int $newLinesWritten = 1`

This is initialized as 1 to account for the new line written by the shell after executing a command.

#### $output

OutputStyle.php : 16

The output instance.

`private OutputInterface $output`

### Methods

#### __construct()

OutputStyle.php : 32

Create a new Console OutputStyle instance.

`public __construct(InputInterface $input, OutputInterface $output) : void`

##### Parameters

$input : InputInterface
$output : OutputInterface

#### askQuestion()

OutputStyle.php : 39
`public askQuestion(Question $question) : mixed`

##### Parameters

$question : Question

#### getOutput()

OutputStyle.php : 154

Get the underlying Symfony output implementation.

`public getOutput() : OutputInterface`

##### Return values

OutputInterface

#### isDebug()

OutputStyle.php : 146

Returns whether verbosity is debug (-vvv).

`public isDebug() : bool`

##### Return values

bool

#### isQuiet()

OutputStyle.php : 116

Returns whether verbosity is quiet (-q).

`public isQuiet() : bool`

##### Return values

bool

#### isVerbose()

OutputStyle.php : 126

Returns whether verbosity is verbose (-v).

`public isVerbose() : bool`

##### Return values

bool

#### isVeryVerbose()

OutputStyle.php : 136

Returns whether verbosity is very verbose (-vv).

`public isVeryVerbose() : bool`

##### Return values

bool

#### newLine()

OutputStyle.php : 71

{@inheritdoc}

`public newLine([int $count = 1 ]) : void`

##### Parameters

$count : int = 1

#### newLinesWritten()

OutputStyle.php : 82

How many trailing newlines were written.

`public newLinesWritten() : int`

##### Return values

int

#### write()

OutputStyle.php : 50
`public write(string|iterable<string|int, mixed> $messages[, bool $newline = false ][, int $options = 0 ]) : void`

##### Parameters

$messages : string|iterable<string|int, mixed>
$newline : bool = false
$options : int = 0

#### writeln()

OutputStyle.php : 60

{@inheritdoc}

`public writeln(string|iterable<string|int, mixed> $messages[, int $type = self::OUTPUT_NORMAL ]) : void`

##### Parameters

$messages : string|iterable<string|int, mixed>
$type : int = self::OUTPUT_NORMAL

#### trailingNewLineCount()

OutputStyle.php : 96
`protected trailingNewLineCount(mixed $messages) : int`

##### Parameters

$messages : mixed

##### Return values

int

## Search results