| Total Complexity | 7 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Trail |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The breadcrumb trail. |
||
| 14 | * |
||
| 15 | * @var Breadcrumbs |
||
| 16 | */ |
||
| 17 | protected $breadcrumbs; |
||
| 18 | |||
| 19 | protected $renderer = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Trail constructor. |
||
| 23 | */ |
||
| 24 | 3 | public function __construct() |
|
| 25 | { |
||
| 26 | 3 | $this->breadcrumbs = new Breadcrumbs(); |
|
| 27 | 3 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param $name |
||
| 31 | * @param $arguments |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | 2 | public function __call($name, $arguments) |
|
| 35 | { |
||
| 36 | 2 | return call_user_func_array([$this->breadcrumbs, $name], $arguments); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 2 | public function render() |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return BreadcrumbsRenderer |
||
| 52 | */ |
||
| 53 | 1 | public function renderer() |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function __toString() |
||
| 67 | } |
||
| 68 | } |
||
| 69 |