Метод | Описание | |
---|---|---|
__construct ( string $label, string $text, integer $padding = 2, boolean $aligned = true ) | Creates a new labeled paragraph. | |
getLabel ( ) : string | Returns the label. | |
getPadding ( ) : integer | Returns the padding between the label and the text in number of spaces. | |
getText ( ) : string | Returns the text. | |
isAligned ( ) : boolean | Returns whether the paragraph is aligned with other paragraphs in its alignment. | |
render ( |
Renders the paragraph. | |
setAlignment ( |
Sets the alignment used to align the paragraph. |
public __construct ( string $label, string $text, integer $padding = 2, boolean $aligned = true ) | ||
$label | string | The label. |
$text | string | The text. |
$padding | integer | The padding between the text and label in number of spaces. |
$aligned | boolean | Whether the paragraph should be aligned with the other paragraph in its alignment (if one is set). |
public getPadding ( ) : integer | ||
Результат | integer | The number of spaces between the label and the text. |
public setAlignment ( |
||
$alignment | The alignment. |