Checkout Class

class Checkout

Represents a Checkout

__construct(?Branch $branch = null)

Creates a new branch Checkout

Parameters:
  • $branch (?Branch) – The branch to checkout description (default: the default - main - branch)

Returns:

A new instance of Checkout

Return type:

Checkout

withComment(string $comment)

Add a comment

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Checkout with the comment

Return type:

Checkout