@@ 206-213 (lines=8) @@ | ||
203 | * |
|
204 | * @return mixed |
|
205 | */ |
|
206 | protected function buildType($type) { |
|
207 | if (!isset($this->types[$type['id']])) { |
|
208 | $creator = [$type['class'], 'createInstance']; |
|
209 | $this->types[$type['id']] = $creator($this, $this->typeManagers[$type['type']], $type['definition'], $type['id']); |
|
210 | } |
|
211 | ||
212 | return $this->types[$type['id']]; |
|
213 | } |
|
214 | ||
215 | /** |
|
216 | * @param $field |
|
@@ 220-227 (lines=8) @@ | ||
217 | * |
|
218 | * @return mixed |
|
219 | */ |
|
220 | protected function buildField($field) { |
|
221 | if (!isset($this->fields[$field['id']])) { |
|
222 | $creator = [$field['class'], 'createInstance']; |
|
223 | $this->fields[$field['id']] = $creator($this, $this->fieldManager, $field['definition'], $field['id']); |
|
224 | } |
|
225 | ||
226 | return $this->fields[$field['id']]; |
|
227 | } |
|
228 | ||
229 | /** |
|
230 | * @param $mutation |
|
@@ 234-241 (lines=8) @@ | ||
231 | * |
|
232 | * @return mixed |
|
233 | */ |
|
234 | protected function buildMutation($mutation) { |
|
235 | if (!isset($this->mutations[$mutation['id']])) { |
|
236 | $creator = [$mutation['class'], 'createInstance']; |
|
237 | $this->mutations[$mutation['id']] = $creator($this, $this->mutationManager, $mutation['definition'], $mutation['id']); |
|
238 | } |
|
239 | ||
240 | return $this->mutations[$mutation['id']]; |
|
241 | } |
|
242 | ||
243 | /** |
|
244 | * @return array |