Breakk Class

class Breakk

Represents a break Block

__construct(string $condition)

Create a new Breakk group of statements

Parameters:
  • $condition (?string) – The condition

Returns:

A new instance of Breakk

Return type:

Breakk

addItem(ItemInterface ...$item)

Add item(s)

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

Returns:

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

Return type:

Breakk

withComment(string $comment)

Sets a comment for the And

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Breakk with the comment

Return type:

Breakk

withItem(ItemInterface ...$item)

Set item(s)

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

Returns:

A new instance of Breakk with the item(s)

Return type:

Breakk