for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of GraphQL project.
*
* @author Alexandr Viniychuk <[email protected]>
* created: 5/12/16 4:24 PM
*/
namespace Youshido\Tests\DataProvider;
use Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType;
use Youshido\GraphQL\Type\Scalar\StringType;
class TestInterfaceType extends AbstractInterfaceType
{
public function resolveType($object)
return is_object($object) ? $object : new TestObjectType();
}
public function build($config)
$config->addField('name', new StringType());