1 | <?php declare(strict_types=1); |
||
29 | class DataArgumentWrapper |
||
30 | { |
||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $data; |
||
35 | 3 | ||
36 | /** |
||
37 | 3 | * @param array $data |
|
38 | */ |
||
39 | 3 | public function __construct(array $data) |
|
45 | 3 | ||
46 | /** |
||
47 | 3 | * @return string |
|
48 | */ |
||
49 | public function getName(): string |
||
53 | 3 | ||
54 | /** |
||
55 | 3 | * @return string |
|
56 | */ |
||
57 | public function getDescription(): string |
||
61 | 3 | ||
62 | /** |
||
63 | 3 | * @return string|null |
|
64 | */ |
||
65 | 3 | public function getDefault(): ?string |
|
73 | 3 | ||
74 | /** |
||
75 | 3 | * @return bool |
|
76 | */ |
||
77 | public function isRequired(): bool |
||
81 | 3 | ||
82 | /** |
||
83 | 3 | * @return bool |
|
84 | */ |
||
85 | public function isOptional(): bool |
||
89 | 3 | ||
90 | /** |
||
91 | 3 | * @return bool |
|
92 | */ |
||
93 | public function isArray(): bool |
||
97 | 3 | ||
98 | /** |
||
99 | 3 | * @return int|null |
|
100 | */ |
||
101 | 3 | public function getMode(): ?int |
|
111 | 3 | ||
112 | /** |
||
113 | 3 | * @return int |
|
114 | */ |
||
115 | protected function getModeValue(): int |
||
119 | 3 | ||
120 | /** |
||
121 | 3 | * @return array |
|
122 | */ |
||
123 | protected function getData(): array |
||
127 | } |
||
128 |