Branch Class

class Branch

Represents a Branch in a Kanban diagram

__construct(string $name, ?int $order)

Creates a new Branch

Parameters:
  • $name (string) – The Branch name

  • $order (?int) – The Branch rendering order (default: render in the order defined)

Returns:

A new instance of Branch

Return type:

Branch

Throws:

InvalidArgumentException if $order < 1

withComment(string $comment)

Add a comment

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Branch with the comment

Return type:

Branch