Catchh Class

class Catchh

Represents a catch clause in a TryCatch object

__construct()

Create a new Catchh

Returns:

A new Catchh instance

Return type:

Catchh

addItem(ItemInterface ...$interface)

Add item(s)

Parameters:
Returns:

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

Return type:

Catchh

withComment(string $comment)

Sets a comment for the Catchh

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Catchh with the comment

Return type:

Catchh

withItem(ItemInterface ...$interface)

Set item(s)

Parameters:
Returns:

A new instance of Catchh with the item(s)

Return type:

Catchh