| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Breadcrumbs |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private $items = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the breadcrumbs items |
||
| 17 | * |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function items(): array |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Clear the breadcrumbs |
||
| 27 | * |
||
| 28 | * @return self |
||
| 29 | */ |
||
| 30 | public function clear(): self |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Add an item to the breadcrumbs |
||
| 38 | * |
||
| 39 | * @param string $label |
||
| 40 | * |
||
| 41 | * @return self |
||
| 42 | */ |
||
| 43 | public function item(string $label): self |
||
| 49 |