1 | <?php declare(strict_types=1); |
||
5 | class Branches implements \Countable, \Iterator |
||
6 | { |
||
7 | private $branches = []; |
||
8 | |||
9 | 1 | public function add(Branch $branch) |
|
13 | |||
14 | public function count(): int |
||
18 | |||
19 | public function rewind() |
||
23 | |||
24 | public function current(): Branch |
||
28 | |||
29 | public function key(): int |
||
33 | |||
34 | public function next(): Branch |
||
38 | |||
39 | public function valid(): bool |
||
45 | } |
||
46 |