for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 07.12.15
*
* @author Portey Vasil <[email protected]>
*/
namespace Youshido\Tests\StarWars\Schema;
use Youshido\GraphQL\Type\Enum\AbstractEnumType;
class EpisodeEnum extends AbstractEnumType
{
public function getValues()
return [
[
'value' => 4,
'name' => 'NEWHOPE',
'description' => 'Released in 1977.'
],
'value' => 5,
'name' => 'EMPIRE',
'description' => 'Released in 1980.'
'value' => 6,
'name' => 'JEDI',
'description' => 'Released in 1983.'
];
}
* @return String type name
public function getName()
return 'Episode';