PHP Класс tad\WPBrowser\Console\Output\WrappingOutput

Decorates the output to wrap lines at a specified width.
Наследование: extends OutputDecorator, implements Symfony\Component\Console\Output\OutputInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$wrapAt The number of chars to wrap the line at.

Открытые методы

Метод Описание
wrapAt ( integer $wrapAt ) Sets the width of the line in chars.
write ( string | array $messages, boolean $newline = false, integer $options ) Writes a message to the output.
writeln ( string | array $messages, integer $options ) Writes a message to the output and adds a newline at the end.

Приватные методы

Метод Описание
wrap ( $messages )

Описание методов

wrapAt() публичный Метод

Sets the width of the line in chars.
public wrapAt ( integer $wrapAt )
$wrapAt integer

write() публичный Метод

Writes a message to the output.
public write ( string | array $messages, boolean $newline = false, integer $options )
$messages string | array The message as an array of lines or a single string
$newline boolean Whether to add a newline
$options integer A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL

writeln() публичный Метод

Writes a message to the output and adds a newline at the end.
public writeln ( string | array $messages, integer $options )
$messages string | array The message as an array of lines of a single string
$options integer A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL

Описание свойств

$wrapAt защищенное свойство

The number of chars to wrap the line at.
protected $wrapAt