Elsee Class¶
- class Elsee¶
Represents an alternative group of statements in an
Iffobject- __construct(?string $condition = null)¶
Create a new Elsee clause
- Parameters:
$condition (
?string) – The condition (default: no condition)
- Returns:
A new instance of
Elsee- Return type:
- addItem(ItemInterface ...$interface)¶
Add item(s)
- Parameters:
...$interface (
ItemInterface) – The item(s)
- Returns:
A new instance of
Elseewith the item(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the Elsee
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Elseewith the comment- Return type: