Elsee Class

class Elsee

Represents an alternative group of statements in an Iff object

__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:

Elsee

addItem(ItemInterface ...$interface)

Add item(s)

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

Returns:

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

Return type:

Elsee

withComment(string $comment)

Sets a comment for the Elsee

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Elsee with the comment

Return type:

Elsee

withItem(ItemInterface ...$interface)

Set item(s)

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

Returns:

A new instance of Elsee with the item(s)

Return type:

Elsee