| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FamilyForm |
||
| 11 | { |
||
| 12 | protected const TemplatePath = __DIR__.'/../Templates/families.json'; |
||
| 13 | |||
| 14 | protected Form $form; |
||
| 15 | |||
| 16 | public function __construct() |
||
| 19 | } |
||
| 20 | |||
| 21 | public function create() |
||
| 22 | { |
||
| 23 | return $this->form |
||
| 24 | ->options('husband_id', Person::all()) |
||
| 25 | ->options('wife_id', Person::all()) |
||
| 26 | // ->options('type_id', Type::all()) |
||
| 27 | ->options('child_id', Person::all()) |
||
| 28 | ->create(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function edit(Family $family) |
||
| 40 | } |
||
| 41 | } |
||
| 42 |