Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Webmozart
Console
UI
Component
Paragraph
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
Mostra 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.