class Style extends OutputStyle implements StyleInterface

Class Style.

Traits

Trait InputAwareTrait.
Trait OutputAwareTrait.

Methods

setInput( InputInterface $input)

No description

InputInterface
getInput()

No description

setOutput( OutputInterface $output)

No description

OutputInterface
getOutput()

No description

__construct( InputInterface $input, OutputInterface $output, $lineLengthMax = 160)

No description

int
getVerbosity()

No description

bool
isQuiet()

No description

bool
isNormal()

No description

bool
isVerbose()

No description

bool
isVeryVerbose()

No description

bool
isDebug()

No description

block( string|array $msgLines, string|null $type = null, string|null $style = null, string $prefix = ' ', bool $padding = false)

Formats a message as a block of text.

string
getSeparatorFullWidth( string $separator = '-')

No description

applicationTitle( string $name, null|string|int $version = null, null|string $commit = null, array $more = array())

No description

title( string $message)

No description

section( string $message)

No description

subSection( string $message)

No description

numberedSection( int $i, int $count, string $pre, string $message)

No description

listing( array $list)

No description

text( string|string[] $msgLines)

No description

comment($msgLines)

No description

smallSuccess( string $title, string $message)

No description

success( string $message)

No description

error( string $message)

No description

warning( string $message)

No description

note( string $message)

No description

info( string $message)

No description

caution( string $message)

No description

table( array $rows, array $headers = null)

No description

mixed
ask( string $question, null|string $default = null, null $validator = null, null|Closure $sanitizer = null)

No description

askHidden($question, $validator = null)

{@inheritdoc}

confirm($question, $default = true)

{@inheritdoc}

choice($question, array $choices, $default = null)

{@inheritdoc}

progressStart($max)

{@inheritdoc}

progressAdvance($step = 1)

{@inheritdoc}

progressFinish()

{@inheritdoc}

createProgressBar($max)

{@inheritdoc}

string
askQuestion( Question $question)

No description

writeln($messages, $type = self::OUTPUT_NORMAL)

{@inheritdoc}

write($messages, $newline = false, $type = self::OUTPUT_NORMAL)

{@inheritdoc}

newLine($count = 1)

{@inheritdoc}

Details

in InputAwareTrait at line line 29
setInput( InputInterface $input)

Parameters

InputInterface $input

in InputAwareTrait at line line 37
InputInterface getInput()

Return Value

InputInterface

in OutputAwareTrait at line line 29
setOutput( OutputInterface $output)

Parameters

OutputInterface $output

in OutputAwareTrait at line line 37
OutputInterface getOutput()

Return Value

OutputInterface

at line line 72
__construct( InputInterface $input, OutputInterface $output, $lineLengthMax = 160)

Parameters

InputInterface $input
OutputInterface $output
$lineLengthMax

at line line 90
int getVerbosity()

Return Value

int

at line line 98
bool isQuiet()

Return Value

bool

at line line 106
bool isNormal()

Return Value

bool

at line line 114
bool isVerbose()

Return Value

bool

at line line 122
bool isVeryVerbose()

Return Value

bool

at line line 130
bool isDebug()

Return Value

bool

at line line 144
block( string|array $msgLines, string|null $type = null, string|null $style = null, string $prefix = ' ', bool $padding = false)

Formats a message as a block of text.

Parameters

string|array $msgLines The message to write in the block
string|null $type The block type (added in [] on first line)
string|null $style The style to apply to the whole block
string $prefix The prefix for the block
bool $padding Whether to add vertical padding

at line line 190
string getSeparatorFullWidth( string $separator = '-')

Parameters

string $separator

Return Value

string

at line line 201
applicationTitle( string $name, null|string|int $version = null, null|string $commit = null, array $more = array())

Parameters

string $name
null|string|int $version
null|string $commit
array $more

at line line 261
title( string $message)

Parameters

string $message

at line line 280
section( string $message)

Parameters

string $message

at line line 301
subSection( string $message)

Parameters

string $message

at line line 328
numberedSection( int $i, int $count, string $pre, string $message)

Parameters

int $i
int $count
string $pre
string $message

at line line 344
listing( array $list)

Parameters

array $list

at line line 358
text( string|string[] $msgLines)

Parameters

string|string[] $msgLines

at line line 372
comment($msgLines)

Parameters

$msgLines

at line line 389
smallSuccess( string $title, string $message)

Parameters

string $title
string $message

at line line 397
success( string $message)

Parameters

string $message

at line line 405
error( string $message)

Parameters

string $message

at line line 413
warning( string $message)

Parameters

string $message

at line line 421
note( string $message)

Parameters

string $message

at line line 429
info( string $message)

Parameters

string $message

at line line 437
caution( string $message)

Parameters

string $message

at line line 446
table( array $rows, array $headers = null)

Parameters

array $rows
array $headers

at line line 483
mixed ask( string $question, null|string $default = null, null $validator = null, null|Closure $sanitizer = null)

Parameters

string $question
null|string $default
null $validator
null|Closure $sanitizer

Return Value

mixed

at line line 500
askHidden($question, $validator = null)

{@inheritdoc}

Parameters

$question
$validator

at line line 512
confirm($question, $default = true)

{@inheritdoc}

Parameters

$question
$default

at line line 520
choice($question, array $choices, $default = null)

{@inheritdoc}

Parameters

$question
array $choices
$default

at line line 532
progressStart($max)

{@inheritdoc}

Parameters

$max

at line line 541
progressAdvance($step = 1)

{@inheritdoc}

Parameters

$step

at line line 549
progressFinish()

{@inheritdoc}

at line line 560
createProgressBar($max)

{@inheritdoc}

Parameters

$max

at line line 578
string askQuestion( Question $question)

Parameters

Question $question

Return Value

string

at line line 601
writeln($messages, $type = self::OUTPUT_NORMAL)

{@inheritdoc}

Parameters

$messages
$type

at line line 611
write($messages, $newline = false, $type = self::OUTPUT_NORMAL)

{@inheritdoc}

Parameters

$messages
$newline
$type

at line line 621
newLine($count = 1)

{@inheritdoc}

Parameters

$count