| @@ 21-32 (lines=12) @@ | ||
| 18 | private $typeMapper; |
|
| 19 | private $hydrator; |
|
| 20 | ||
| 21 | protected function getTestObjectType() |
|
| 22 | { |
|
| 23 | if ($this->testObjectType === null) { |
|
| 24 | $this->testObjectType = new ObjectType([ |
|
| 25 | 'name' => 'TestObject', |
|
| 26 | 'fields' => [ |
|
| 27 | 'test' => new StringType(), |
|
| 28 | ], |
|
| 29 | ]); |
|
| 30 | } |
|
| 31 | return $this->testObjectType; |
|
| 32 | } |
|
| 33 | ||
| 34 | protected function getInputTestObjectType() |
|
| 35 | { |
|
| @@ 34-45 (lines=12) @@ | ||
| 31 | return $this->testObjectType; |
|
| 32 | } |
|
| 33 | ||
| 34 | protected function getInputTestObjectType() |
|
| 35 | { |
|
| 36 | if ($this->inputTestObjectType === null) { |
|
| 37 | $this->inputTestObjectType = new InputObjectType([ |
|
| 38 | 'name' => 'TestObject', |
|
| 39 | 'fields' => [ |
|
| 40 | 'test' => new StringType(), |
|
| 41 | ], |
|
| 42 | ]); |
|
| 43 | } |
|
| 44 | return $this->inputTestObjectType; |
|
| 45 | } |
|
| 46 | ||
| 47 | protected function getTypeMapper() |
|
| 48 | { |
|