Parallel Class¶
- class Parallel¶
Represents a Parallel block
- __construct(string $condition)¶
Create a new Parallel group of statements
- Parameters:
$condition (
?string) – The condition
- Returns:
A new instance of
Parallel- Return type:
- addAnd(Andd ...$and)¶
Add Andd clause(s)
- addItem(ItemInterface ...$item)¶
Add item(s)
- Parameters:
...$item (
ItemInterface) – The item(s)
- Returns:
A new instance of
Parallelwith the item(s) added- Return type:
- withAnd(Andd ...$and)¶
Set Andd clause(s)
- withComment(string $comment)¶
Sets a comment for the Parallel
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Parallelwith the comment- Return type: