| @@ 28-39 (lines=12) @@ | ||
| 25 | private $hydrator; |
|
| 26 | private $registry; |
|
| 27 | ||
| 28 | protected function getTestObjectType() |
|
| 29 | { |
|
| 30 | if ($this->testObjectType === null) { |
|
| 31 | $this->testObjectType = new ObjectType([ |
|
| 32 | 'name' => 'TestObject', |
|
| 33 | 'fields' => [ |
|
| 34 | 'test' => new StringType(), |
|
| 35 | ], |
|
| 36 | ]); |
|
| 37 | } |
|
| 38 | return $this->testObjectType; |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function getInputTestObjectType() |
|
| 42 | { |
|
| @@ 41-52 (lines=12) @@ | ||
| 38 | return $this->testObjectType; |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function getInputTestObjectType() |
|
| 42 | { |
|
| 43 | if ($this->inputTestObjectType === null) { |
|
| 44 | $this->inputTestObjectType = new InputObjectType([ |
|
| 45 | 'name' => 'TestObject', |
|
| 46 | 'fields' => [ |
|
| 47 | 'test' => new StringType(), |
|
| 48 | ], |
|
| 49 | ]); |
|
| 50 | } |
|
| 51 | return $this->inputTestObjectType; |
|
| 52 | } |
|
| 53 | ||
| 54 | protected function getTypeMapper() |
|
| 55 | { |
|