| 1 | <?php |
||
| 13 | /** |
||
| 14 | * Date: 07.12.15. |
||
| 15 | */ |
||
| 16 | |||
| 17 | namespace Youshido\Tests\StarWars\Schema; |
||
| 18 | |||
| 19 | use Youshido\GraphQL\Type\Enum\AbstractEnumType; |
||
| 20 | |||
| 21 | class EpisodeEnum extends AbstractEnumType |
||
| 22 | { |
||
| 23 | public function getValues() |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | [ |
||
| 27 | 'value' => 4, |
||
| 28 | 'name' => 'NEWHOPE', |
||
| 29 | 'description' => 'Released in 1977.', |
||
| 30 | ], |
||
| 31 | [ |
||
| 32 | 'value' => 5, |
||
| 33 | 'name' => 'EMPIRE', |
||
| 34 | 'description' => 'Released in 1980.', |
||
| 35 | ], |
||
| 36 | [ |
||
| 37 | 'value' => 6, |
||
| 38 | 'name' => 'JEDI', |
||
| 39 | 'description' => 'Released in 1983.', |
||
| 40 | ], |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string type name |
||
| 52 |