Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class FieldView implements View |
||
11 | { |
||
12 | private string $fieldName; |
||
13 | private string $template; |
||
14 | private array $options; |
||
15 | private ?Closure $dataTransformer; |
||
16 | |||
17 | 2 | public function __construct( |
|
27 | 2 | } |
|
28 | |||
29 | public function getName(): string |
||
30 | { |
||
31 | return $this->fieldName; |
||
32 | } |
||
33 | |||
34 | public function getOptions(): array |
||
35 | { |
||
36 | return $this->options; |
||
37 | } |
||
38 | |||
39 | public function getOption(string $name) |
||
46 | } |
||
47 | |||
48 | public function getTemplate(): string |
||
51 | } |
||
52 | |||
53 | public function getDataTransformer(): ?Closure |
||
56 | } |
||
57 | } |
||
58 |