| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class File extends Field |
||
| 8 | { |
||
| 9 | protected $visibility = [ |
||
| 10 | Scaffolding::PAGE_INDEX => true, |
||
| 11 | Scaffolding::PAGE_EDIT => true, |
||
| 12 | Scaffolding::PAGE_VIEW => true, |
||
| 13 | ]; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | public function onEdit(): array |
||
| 19 | { |
||
| 20 | return $this->onIndex(); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function onView(): array |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | protected function onIndex(): array |
||
| 41 |