We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class MenuItem extends Component |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a new component instance. |
||
| 13 | */ |
||
| 14 | public function __construct( |
||
| 15 | public ?string $title = null, |
||
| 16 | public ?string $icon = null, |
||
| 17 | public ?string $link = null, |
||
| 18 | ) { |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the view / contents that represent the component. |
||
| 23 | */ |
||
| 24 | public function render(): View|Closure|string |
||
| 27 | } |
||
| 28 | } |
||
| 29 |