@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public const TYPE_DESCRIPTION = <<<Description |
| 40 | 40 | The @skip directive may be provided for fields, fragment spreads, and inline fragments, |
| 41 | 41 | and allows for conditional exclusion during execution as described by the if argument. |
| 42 | -Description; |
|
| 42 | +description; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * BooleanScalar constructor. |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | private const LOCATIONS = [ |
| 26 | 26 | DirectiveLocation::OBJECT, |
| 27 | - DirectiveLocation::INTERFACE, |
|
| 27 | + DirectiveLocation::interface, |
|
| 28 | 28 | DirectiveLocation::FIELD_DEFINITION, |
| 29 | 29 | DirectiveLocation::SCALAR, |
| 30 | 30 | DirectiveLocation::UNION, |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | The @deprecated directive is used within the type system definition language to |
| 48 | 48 | indicate deprecated portions of a GraphQL service’s schema, such as deprecated |
| 49 | 49 | fields on a type or deprecated enum values. |
| 50 | -Description; |
|
| 50 | +description; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * BooleanScalar constructor. |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | The @include directive may be provided for fields, fragment spreads, and inline |
| 41 | 41 | fragments, and allows for conditional inclusion during execution as described |
| 42 | 42 | by the if argument. |
| 43 | -Description; |
|
| 43 | +description; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * BooleanScalar constructor. |
@@ -51,5 +51,5 @@ |
||
| 51 | 51 | * @param TypeDefinition|string $definition |
| 52 | 52 | * @return bool |
| 53 | 53 | */ |
| 54 | - public function instanceOf($definition): bool; |
|
| 54 | + public function instanceof($definition): bool; |
|
| 55 | 55 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * @param TypeDefinition|string $type |
| 104 | 104 | * @return bool |
| 105 | 105 | */ |
| 106 | - public function instanceOf($type): bool |
|
| 106 | + public function instanceof($type): bool |
|
| 107 | 107 | { |
| 108 | 108 | /** |
| 109 | 109 | * @var TypeDefinition $type |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @version SDL June 2018 |
| 111 | 111 | * @var string |
| 112 | 112 | */ |
| 113 | - public const INTERFACE = 'INTERFACE'; |
|
| 113 | + public const interface = 'INTERFACE'; |
|
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @version SDL June 2018 |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | public const SDL_LOCATIONS = [ |
| 162 | 162 | self::SCALAR, |
| 163 | 163 | self::OBJECT, |
| 164 | - self::INTERFACE, |
|
| 164 | + self::interface, |
|
| 165 | 165 | self::UNION, |
| 166 | 166 | self::ENUM, |
| 167 | 167 | self::INPUT_OBJECT, |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | public const LOCATION_TO_TYPES = [ |
| 181 | 181 | self::SCALAR => TypeInterface::SCALAR, |
| 182 | 182 | self::OBJECT => TypeInterface::OBJECT, |
| 183 | - self::INTERFACE => TypeInterface::INTERFACE, |
|
| 183 | + self::interface => TypeInterface::interface, |
|
| 184 | 184 | self::UNION => TypeInterface::UNION, |
| 185 | 185 | self::ENUM => TypeInterface::ENUM, |
| 186 | 186 | self::INPUT_OBJECT => TypeInterface::INPUT_OBJECT, |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | an object or as the key for a cache. The ID type is serialized in the |
| 32 | 32 | same way as a String; however, defining it as an ID signifies that it |
| 33 | 33 | is not intended to be human‐readable. |
| 34 | -Description; |
|
| 34 | +description; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @var int |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | public const TYPE_DESCRIPTION = <<<Description |
| 30 | 30 | The DateTime scalar conforms to the **RFC 3339** |
| 31 | 31 | profile of the **ISO 8601** standard. |
| 32 | -Description; |
|
| 32 | +description; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @var int |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * @var string |
| 39 | 39 | */ |
| 40 | - public const INTERFACE = 'Interface'; |
|
| 40 | + public const interface = 'Interface'; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @var string |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | public const ROOT_TYPES = [ |
| 114 | 114 | self::SCALAR, |
| 115 | 115 | self::OBJECT, |
| 116 | - self::INTERFACE, |
|
| 116 | + self::interface, |
|
| 117 | 117 | self::UNION, |
| 118 | 118 | self::ENUM, |
| 119 | 119 | self::INPUT_OBJECT, |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public const ALLOWS_TO_OUTPUT = [ |
| 142 | 142 | self::SCALAR, |
| 143 | 143 | self::OBJECT, |
| 144 | - self::INTERFACE, |
|
| 144 | + self::interface, |
|
| 145 | 145 | self::UNION, |
| 146 | 146 | self::ENUM, |
| 147 | 147 | self::INPUT_OBJECT, |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @var string[]|array[] |
| 159 | 159 | */ |
| 160 | 160 | public const INHERITANCE_TREE = [ |
| 161 | - self::INTERFACE => [ |
|
| 161 | + self::interface => [ |
|
| 162 | 162 | self::OBJECT => [ |
| 163 | 163 | self::INPUT_OBJECT |
| 164 | 164 | ], |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * @param TypeInterface $type |
| 211 | 211 | * @return bool |
| 212 | 212 | */ |
| 213 | - public function instanceOf(TypeInterface $type): bool; |
|
| 213 | + public function instanceof(TypeInterface $type): bool; |
|
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | 216 | * Returns true if the type is the same as the current type. |