Loop Class¶
- class Loop¶
Represents a loop Block
- __construct(string $condition)¶
Create a new Loop block
- Parameters:
$condition (
?string) – The condition
- Returns:
A new instance of
Loop- Return type:
- addItem(ItemInterface ...$item)¶
Add item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
Loopwith the item(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the Loop
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Loopwith the comment- Return type: