We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 8 | class MenuItem extends Model |
||
| 9 | { |
||
| 10 | use CrudTrait; |
||
| 11 | |||
| 12 | protected $table = 'menu_items'; |
||
| 13 | protected $fillable = ['name', 'type', 'link', 'page_id', 'parent_id', 'menu_id']; |
||
| 14 | |||
| 15 | public function parent() |
||
| 19 | |||
| 20 | public function children() |
||
| 24 | |||
| 25 | public function page() |
||
| 29 | |||
| 30 | public function menu() |
||
| 34 | |||
| 35 | public function url() |
||
| 53 | } |
||
| 54 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.