Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class citationForm |
||
10 | { |
||
11 | private const TemplatePath = __DIR__.'/../Templates/citation.json'; |
||
12 | |||
13 | private $form; |
||
14 | |||
15 | public function __construct() |
||
16 | { |
||
17 | $this->form = new Form(self::TemplatePath); |
||
18 | } |
||
19 | |||
20 | public function create() |
||
21 | { |
||
22 | return $this->form->options('source_id', Source::get(['sources.name', 'sources.id'])) |
||
23 | ->create(); |
||
24 | } |
||
25 | |||
26 | public function edit(Citation $citation) |
||
30 | } |
||
31 | } |
||
32 |