PHP Class Webmozart\Console\UI\Component\Paragraph

The paragraph is wrapped into the dimensions of the output.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Webmozart\Console\UI\Component
Show file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( string $text ) Creates a new paragraph.
render ( IO $io, integer $indentation ) Renders the paragraph.

Method Details

__construct() public method

Creates a new paragraph.
public __construct ( string $text )
$text string The text of the paragraph.

render() public method

Renders the paragraph.
public render ( IO $io, integer $indentation )
$io Webmozart\Console\Api\IO\IO The I/O.
$indentation integer The number of spaces to indent.