Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function create(?array $ops = null): Form |
|
18 | { |
||
19 | 1 | $component = new Form(); |
|
20 | 1 | $this->init($component, $ops); |
|
21 | 1 | $component->setFormType($this->ops['formType']); |
|
22 | 1 | $component->setSuccessHandler($this->ops['successHandler']); |
|
23 | 1 | $this->validate($component); |
|
24 | 1 | return $component; |
|
25 | } |
||
41 |