Fork Class

class Fork

Represents a Fork

Implements StateInterface

__construct(?string $id)

Create a Fork

Parameters:
  • $id (?string) – The state id (default: auto-generate)

Returns:

An instance of Fork

Return type:

Fork

withComment(string $comment)

Add a comment

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Fork with the comment

Return type:

Fork