@@ -140,6 +140,9 @@ discard block |
||
140 | 140 | return $this->getTyped($field); |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $field |
|
145 | + */ |
|
143 | 146 | protected function fieldDefinitionType($field) |
144 | 147 | { |
145 | 148 | return $this->fieldDefinitionValue($field, static::TYPE); |
@@ -182,11 +185,17 @@ discard block |
||
182 | 185 | $this->initialized[$field] = true; |
183 | 186 | } |
184 | 187 | |
188 | + /** |
|
189 | + * @param string $field |
|
190 | + */ |
|
185 | 191 | public function isOptional($field) |
186 | 192 | { |
187 | 193 | return $this->fieldDefinitionValue($field, static::OPTIONAL, false); |
188 | 194 | } |
189 | 195 | |
196 | + /** |
|
197 | + * @param string $field |
|
198 | + */ |
|
190 | 199 | protected function decorateField($field, $value) |
191 | 200 | { |
192 | 201 | if ($decorator = $this->fieldDefinitionValue($field, static::DECORATOR)) { |