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:

Parallel

addAnd(Andd ...$and)

Add Andd clause(s)

Parameters:
  • ...$and (Andd) – The Andd clause(s)

Returns:

A new instance of Parallel with the Andd clause(s) added

Return type:

Parallel

addItem(ItemInterface ...$item)

Add item(s)

Parameters:
  • ...$item (ItemInterface) – The item(s)

Returns:

A new instance of Parallel with the item(s) added

Return type:

Parallel

withAnd(Andd ...$and)

Set Andd clause(s)

Parameters:
  • ...$and (Andd) – The Andd clause(s)

Returns:

A new instance of Parallel with the Andd clause(s)

Return type:

Parallel

withComment(string $comment)

Sets a comment for the Parallel

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Parallel with the comment

Return type:

Parallel

withItem(ItemInterface ...$item)

Set item(s)

Parameters:
  • ...$item (ItemInterface) – The item(s)

Returns:

A new instance of Parallel with the item(s)

Return type:

Parallel