1 | <?php |
||
15 | * |
||
16 | * @author Alexandr Viniychuk <[email protected]> |
||
17 | * created: 5/12/16 4:24 PM |
||
18 | */ |
||
19 | |||
20 | namespace Youshido\Tests\DataProvider; |
||
21 | |||
22 | use Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType; |
||
23 | use Youshido\GraphQL\Type\Scalar\StringType; |
||
24 | |||
25 | class TestInterfaceType extends AbstractInterfaceType |
||
26 | { |
||
27 | public function resolveType($object) |
||
28 | { |
||
29 | return \is_object($object) ? $object : new TestObjectType(); |
||
30 | } |
||
37 |