@@ 193-200 (lines=8) @@ | ||
190 | * |
|
191 | * @return mixed |
|
192 | */ |
|
193 | protected function buildType($type) { |
|
194 | if (!isset($this->types[$type['id']])) { |
|
195 | $creator = [$type['class'], 'createInstance']; |
|
196 | $this->types[$type['id']] = $creator($this, $this->typeManagers[$type['type']], $type['definition'], $type['id']); |
|
197 | } |
|
198 | ||
199 | return $this->types[$type['id']]; |
|
200 | } |
|
201 | ||
202 | /** |
|
203 | * @param $field |
|
@@ 207-214 (lines=8) @@ | ||
204 | * |
|
205 | * @return mixed |
|
206 | */ |
|
207 | protected function buildField($field) { |
|
208 | if (!isset($this->fields[$field['id']])) { |
|
209 | $creator = [$field['class'], 'createInstance']; |
|
210 | $this->fields[$field['id']] = $creator($this, $this->fieldManager, $field['definition'], $field['id']); |
|
211 | } |
|
212 | ||
213 | return $this->fields[$field['id']]; |
|
214 | } |
|
215 | ||
216 | /** |
|
217 | * @param $mutation |
|
@@ 221-228 (lines=8) @@ | ||
218 | * |
|
219 | * @return mixed |
|
220 | */ |
|
221 | protected function buildMutation($mutation) { |
|
222 | if (!isset($this->mutations[$mutation['id']])) { |
|
223 | $creator = [$mutation['class'], 'createInstance']; |
|
224 | $this->fields[$mutation['id']] = $creator($this, $this->mutationManager, $mutation['definition'], $mutation['id']); |
|
225 | } |
|
226 | ||
227 | return $this->mutations[$mutation['id']]; |
|
228 | } |
|
229 | ||
230 | /** |
|
231 | * @return array |