1 | <?php |
||
15 | */ |
||
16 | |||
17 | namespace Youshido\Tests\DataProvider; |
||
18 | |||
19 | use Youshido\GraphQL\Execution\ResolveInfo; |
||
20 | use Youshido\GraphQL\Field\AbstractField; |
||
21 | use Youshido\GraphQL\Type\Object\AbstractObjectType; |
||
22 | use Youshido\GraphQL\Type\Scalar\IntType; |
||
23 | |||
24 | class TestField extends AbstractField |
||
25 | { |
||
26 | /** |
||
27 | * @return AbstractObjectType |
||
28 | */ |
||
29 | public function getType() |
||
30 | { |
||
31 | return new IntType(); |
||
32 | } |
||
33 | |||
34 | public function resolve($value, array $args, ResolveInfo $info) |
||
35 | { |
||
36 | return $value; |
||
44 |