| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class FieldDefinition implements FieldDefinitionInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $type; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $options; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $formOptions; |
||
| 21 | |||
| 22 | public function __construct(string $type, array $options = [], array $formOptions = []) |
||
| 23 | { |
||
| 24 | $this->type = $type; |
||
| 25 | $this->options = $options; |
||
| 26 | $this->formOptions = $formOptions; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getType(): ?string |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getOptions(): array |
||
| 35 | { |
||
| 36 | return $this->options; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getFormOptions(): array |
||
| 45 | } |
||
| 46 | } |
||
| 47 |