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