Critical Class¶
- class Critical¶
Represents a critical Block
- __construct(string $condition)¶
Create a new Critical group of statements
- Parameters:
$condition (
?string) – The condition
- Returns:
A new instance of
Critical- Return type:
- addItem(ItemInterface ...$item)¶
Add item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
Criticalwith the item(s) added- Return type:
- addOption(Option ...$option)¶
Add option clause(s)
- Parameters:
...$option (
Option) – The option clause(s)
- Returns:
A new instance of
Criticalwith the option clause(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the And
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Criticalwith the comment- Return type:
- withItem(ItemInterface ...$item)¶
Set item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
Criticalwith the item(s)- Return type: