Whilee Class¶
- class Whilee¶
Represents a while loop
Implements
ItemInterface- __construct(string $condition)¶
Create a new Whilee
- Parameters:
$condition (
string) – The loop condition
- Returns:
A new
Whileeinstance- Return type:
- addItem(ItemInterface ...$item)¶
Add items to the Whilee section
- Parameters:
...$item (
string ItemInterface) – The item(s)
- Returns:
A new instance of
Whileewith the item(s) added- Return type:
- withComment(string $comment)¶
Set a comment for the Whilee
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Whileewith the comment- Return type: