| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | interface Breadcrumbs |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Getters & Setters |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set the supported template. |
||
| 23 | * |
||
| 24 | * @param array $supported |
||
| 25 | * |
||
| 26 | * @return self |
||
| 27 | */ |
||
| 28 | public function setSupported(array $supported); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set default template view. |
||
| 32 | * |
||
| 33 | * @param string $template |
||
| 34 | * |
||
| 35 | * @return self |
||
| 36 | */ |
||
| 37 | public function setTemplate($template); |
||
| 38 | |||
| 39 | /* ----------------------------------------------------------------- |
||
| 40 | | Main Methods |
||
| 41 | | ----------------------------------------------------------------- |
||
| 42 | */ |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Register a breadcrumb domain. |
||
| 46 | * |
||
| 47 | * @param string $name |
||
| 48 | * @param \Closure $callback |
||
| 49 | * |
||
| 50 | * @return self |
||
| 51 | */ |
||
| 52 | public function register($name, Closure $callback); |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Render breadcrumbs items. |
||
| 56 | * |
||
| 57 | * @param string|null $name |
||
| 58 | * @param array $params |
||
| 59 | * |
||
| 60 | * @return \Illuminate\Support\HtmlString |
||
| 61 | */ |
||
| 62 | public function render($name = null, ...$params); |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Generate the breadcrumbs. |
||
| 66 | * |
||
| 67 | * @param string $name |
||
| 68 | * @param array $params |
||
| 69 | * |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | public function generate($name, ...$params); |
||
| 73 | } |
||
| 74 |