CherryPick Class

class CherryPick

Represents a CherryPick

__construct(Commit $commit)

Creates CherryPick

Parameters:
  • $commit (Commit) – The Commit to cherrypick

Returns:

A new instance of CherryPick

Return type:

CherryPick

Throws:

InvalidArgumentException if $commit does not have an id

withComment(string $comment)

Add a comment

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of CherryPick with the comment

Return type:

CherryPick