| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Breadcrumbs extends AbstractCollection |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param $title |
||
| 15 | * @param bool $url |
||
| 16 | */ |
||
| 17 | 3 | public function addItem($title, $url = false) |
|
| 18 | { |
||
| 19 | 3 | $item = new Crumb($title, $url); |
|
| 20 | 3 | $this->add($item); |
|
| 21 | 3 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @deprecated use clear instead |
||
| 25 | */ |
||
| 26 | 1 | public function reset() |
|
| 29 | 1 | } |
|
| 30 | } |
||
| 31 |