| 1 | <?php | ||
| 9 | abstract class Directive implements DirectiveInterface | ||
| 10 | { | ||
| 11 | /** | ||
| 12 | * @var \Fubhy\GraphQL\Type\Directives\DirectiveInterface | ||
| 13 | */ | ||
| 14 | protected static $include; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * @var \Fubhy\GraphQL\Type\Directives\DirectiveInterface | ||
| 18 | */ | ||
| 19 | protected static $skip; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | protected $name; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var string | ||
| 28 | */ | ||
| 29 | protected $description; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @var array | ||
| 33 | */ | ||
| 34 | protected $arguments; | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @var \Fubhy\GraphQL\Type\Definition\Types\TypeInterface | ||
| 38 | */ | ||
| 39 | protected $type; | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @var bool | ||
| 43 | */ | ||
| 44 | protected $onOperation; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * @var bool | ||
| 48 | */ | ||
| 49 | protected $onFragment; | ||
| 50 | |||
| 51 | /** | ||
| 52 | * @var bool | ||
| 53 | */ | ||
| 54 | protected $onField; | ||
| 55 | |||
| 56 | /** | ||
| 57 | * @return \Fubhy\GraphQL\Type\Directives\DirectiveInterface | ||
| 58 | */ | ||
| 59 | 279 | public static function includeDirective() | |
| 67 | |||
| 68 | /** | ||
| 69 | * @return \Fubhy\GraphQL\Type\Directives\DirectiveInterface | ||
| 70 | */ | ||
| 71 | 279 | public static function skipDirective() | |
| 79 | |||
| 80 | /** | ||
| 81 |      * {@inheritdoc} | ||
| 82 | */ | ||
| 83 | 15 | public function getName() | |
| 87 | |||
| 88 | /** | ||
| 89 |      * {@inheritdoc} | ||
| 90 | */ | ||
| 91 | public function getDescription() | ||
| 95 | |||
| 96 | /** | ||
| 97 |      * {@inheritdoc} | ||
| 98 | */ | ||
| 99 | 15 | public function getArguments() | |
| 103 | |||
| 104 | /** | ||
| 105 |      * {@inheritdoc} | ||
| 106 | */ | ||
| 107 | public function getType() | ||
| 111 | |||
| 112 | /** | ||
| 113 |      * {@inheritdoc} | ||
| 114 | */ | ||
| 115 | 3 | public function onOperation() | |
| 119 | |||
| 120 | /** | ||
| 121 |      * {@inheritdoc} | ||
| 122 | */ | ||
| 123 | 3 | public function onFragment() | |
| 127 | |||
| 128 | /** | ||
| 129 |      * {@inheritdoc} | ||
| 130 | */ | ||
| 131 | 3 | public function onField() | |
| 135 | } | ||
| 136 |