Andd Class

class Andd

Represents an and clause, a parallel group of statements in a Parallel object

__construct(string $action)

Create a new Andd group of statements

Parameters:
  • $action (?string) – The action that the statements perform

Returns:

A new instance of Andd

Return type:

Andd

addItem(ItemInterface ...$interface)

Add item(s)

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

Returns:

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

Return type:

Andd

withComment(string $comment)

Sets a comment for the And

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Andd with the comment

Return type:

Andd

withItem(ItemInterface ...$interface)

Set item(s)

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

Returns:

A new instance of Andd with the item(s)

Return type:

Andd