Catchh Class¶
- class Catchh¶
Represents a catch clause in a
TryCatchobject- addItem(ItemInterface ...$interface)¶
Add item(s)
- Parameters:
...$interface (
ItemInterface) – The item(s)
- Returns:
A new instance of
Catchhwith the item(s) added- Return type:
- withComment(string $comment)¶
Sets a comment for the Catchh
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Catchhwith the comment- Return type:
- withItem(ItemInterface ...$interface)¶
Set item(s)
- Parameters:
...$interface (
ItemInterface) – The item(s)
- Returns:
A new instance of
Catchhwith the item(s)- Return type: