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
Afficher le fichier Open project: webmozart/console Class Usage Examples

Méthodes publiques

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

Method Details

__construct() public méthode

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

render() public méthode

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.