| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Nav extends Component |
||
| 11 | { |
||
| 12 | public ?string $title; |
||
| 13 | |||
| 14 | /** @var NavItems */ |
||
| 15 | private NavItems $nav; |
||
| 16 | |||
| 17 | public function __construct(NavItems $nav, ?string $title = null) |
||
| 18 | { |
||
| 19 | $this->title = $title; |
||
| 20 | $this->nav = $nav; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View |
||
| 25 | */ |
||
| 26 | public function render() |
||
| 27 | { |
||
| 28 | return view('chief::components.nav.index'); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function items(): Collection |
||
| 43 | } |
||
| 44 | } |
||
| 45 |