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:
- 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
CherryPickwith the comment- Return type: