| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FamilyEventForm |
||
| 11 | { |
||
| 12 | protected const TemplatePath = __DIR__.'/../Templates//familyEvent.json'; |
||
| 13 | |||
| 14 | protected Form $form; |
||
| 15 | |||
| 16 | public function __construct() |
||
| 17 | { |
||
| 18 | $this->form = new Form(static::TemplatePath); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function create() |
||
| 22 | { |
||
| 23 | return $this->form->options('family_id', Family::all())->options('place_id', Place::all())->create(); |
||
| 24 | // return $this->form->options(['family_id' => Family::all(), 'place_id' => Place::all()])->create(); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function edit(FamilyEvent $familyEvent) |
||
| 30 | // return $this->form->options(['family_id' => Family::all(), 'place_id' => Place::all()])->edit($familyEvent); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |