Back to CliApplication class

Method out

public $this
out
(mixed $text = '', mixed $nl = true)
Write a string to standard output.
Parameters
  • string $text The text to display.
  • bool $nl True (default) to append a new line at the end of the output string.
Returns
  • $this
Since
  • 4.0.0

Method out - Source code

/**
 * Write a string to standard output.
 *
 * @param   string   $text  The text to display.
 * @param   boolean  $nl    True (default) to append a new line at the end of the output string.
 *
 * @return  $this
 *
 * @since   4.0.0
 */
public function out($text = '', $nl = true)
{
    $this->getOutput()->out($text, $nl);
    return $this;
}