| 1 | <?php |
||
| 5 | trait Hidden |
||
| 6 | { |
||
| 7 | protected $hidden = [ |
||
| 8 | 'list' => false, |
||
| 9 | 'edit' => false, |
||
| 10 | 'create' => false, |
||
| 11 | ]; |
||
| 12 | |||
| 13 | 13 | public function hide(bool $edit = false, bool $create = false, bool $list = false) |
|
| 23 | |||
| 24 | 15 | public function hideList(bool $hide = false) |
|
| 30 | |||
| 31 | 15 | public function hideEdit(bool $hide = false) |
|
| 37 | |||
| 38 | 15 | public function hideCreate(bool $hide = false) |
|
| 44 | |||
| 45 | 34 | public function hidden(string $type) |
|
| 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.