| 1 | <?php |
||
| 14 | class BreadcrumbCollection extends Collection |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Main Methods |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Add a breadcrumb item to collection. |
||
| 23 | * |
||
| 24 | * @param string $title |
||
| 25 | * @param string $url |
||
| 26 | * @param array $data |
||
| 27 | * |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | 42 | public function addOne($title, $url, array $data = []) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Add a breadcrumb item to collection. |
||
| 39 | * |
||
| 40 | * @param \Arcanedev\Breadcrumbs\Entities\BreadcrumbItem $item |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | 42 | public function addBreadcrumb(BreadcrumbItem $item) |
|
| 48 | |||
| 49 | /* ----------------------------------------------------------------- |
||
| 50 | | Other Methods |
||
| 51 | | ----------------------------------------------------------------- |
||
| 52 | */ |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Order all breadcrumbs items. |
||
| 56 | * |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | 42 | private function order() |
|
| 75 | } |
||
| 76 |