1 | <?php declare(strict_types=1); |
||
29 | class DataOptionWrapper |
||
30 | { |
||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $data; |
||
35 | 3 | ||
36 | /** |
||
37 | 3 | * @param array $data |
|
38 | */ |
||
39 | public function __construct(array $data) |
||
49 | 3 | ||
50 | /** |
||
51 | 3 | * @return string |
|
52 | */ |
||
53 | public function getName(): string |
||
57 | 3 | ||
58 | /** |
||
59 | 3 | * @return string|null |
|
60 | */ |
||
61 | public function getShortcut(): ?string |
||
65 | 3 | ||
66 | /** |
||
67 | 3 | * @return string |
|
68 | */ |
||
69 | public function getDescription(): string |
||
73 | 3 | ||
74 | /** |
||
75 | 3 | * @return string|null |
|
76 | */ |
||
77 | 3 | public function getDefault(): ?string |
|
85 | 3 | ||
86 | /** |
||
87 | 3 | * @return bool |
|
88 | */ |
||
89 | public function isNone(): bool |
||
93 | 3 | ||
94 | /** |
||
95 | 3 | * @return bool |
|
96 | */ |
||
97 | public function isRequired(): bool |
||
101 | 3 | ||
102 | /** |
||
103 | 3 | * @return bool |
|
104 | */ |
||
105 | public function isOptional(): bool |
||
109 | 3 | ||
110 | /** |
||
111 | 3 | * @return bool |
|
112 | */ |
||
113 | public function isArray(): bool |
||
117 | 3 | ||
118 | /** |
||
119 | 3 | * @return int|null |
|
120 | */ |
||
121 | 3 | public function getMode(): ?int |
|
132 | 3 | ||
133 | /** |
||
134 | 3 | * @return int |
|
135 | */ |
||
136 | protected function getModeValue(): int |
||
140 | 3 | ||
141 | /** |
||
142 | 3 | * @return array |
|
143 | */ |
||
144 | protected function getData(): array |
||
148 | } |
||
149 |