Tryy Class¶
- class Tryy¶
Represents a try clause in a
TryCatchobject- addItem(ItemInterface ...$item)¶
Add items to the Tryy section
- Parameters:
...$item (
string ItemInterface) – The item(s)
- Returns:
A new instance of
Tryywith the item(s) added- Return type:
- withComment(string $comment)¶
Set a comment for the Tryy
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Tryywith the comment- Return type: