Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Field |
||
12 | { |
||
13 | protected Configuration $config; |
||
14 | |||
15 | /** |
||
16 | * Form constructor. |
||
17 | * @param Configuration $config |
||
18 | */ |
||
19 | 23 | public function __construct(Configuration $config) |
|
22 | 23 | } |
|
23 | |||
24 | /** |
||
25 | * Find field class. |
||
26 | * |
||
27 | * @param string $method |
||
28 | * @return bool|string |
||
29 | */ |
||
30 | 23 | public function findFieldClass(string $method) |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Generate a Field object and add to form builder if Field exists. |
||
44 | * |
||
45 | * @param string $method |
||
46 | * @param $args |
||
47 | * @return FieldInterface |
||
48 | * @throws FieldDoesNotExistsException |
||
49 | */ |
||
50 | 22 | public function __call(string $method, array $args): FieldInterface |
|
59 |