Class LabeledParagraph
A paragraph with a label on its left.
The paragraph is indented to the right of the label and wrapped into the
dimensions of the output. You can align multiple labeled paragraphs by
passing a Webmozart\Console\UI\Alignment\LabelAlignment
to Webmozart\Console\UI\Component\LabeledParagraph::setAlignment()
.
- Webmozart\Console\UI\Component\LabeledParagraph implements Webmozart\Console\UI\Component
Namespace: Webmozart\Console\UI\Component
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Component/LabeledParagraph.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Component/LabeledParagraph.php
public
|
#
__construct( string $label, string $text, integer $padding = 2, boolean $aligned = true )
Creates a new labeled paragraph. |
public
string
|
|
public
string
|
|
public
integer
|
|
public
|
#
setAlignment(
Sets the alignment used to align the paragraph. |
public
boolean
|
|
public
|