Finallyy Class

class Finallyy

Represents a finally clause a TryCatch object

__construct()

Create a new Finallyy

Returns:

A new Finallyy instance

Return type:

Finallyy

addItem(ItemInterface ...$interface)

Add item(s)

Parameters:
Returns:

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

Return type:

Finallyy

withComment(string $comment)

Sets a comment for the Finallyy

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Finallyy with the comment

Return type:

Finallyy

withItem(ItemInterface ...$interface)

Set item(s)

Parameters:
Returns:

A new instance of Finallyy with the item(s)

Return type:

Finallyy