@@ -114,7 +114,7 @@ |
||
114 | 114 | * @param TypeInterface $type |
115 | 115 | * @return bool |
116 | 116 | */ |
117 | - public function instanceOf(TypeInterface $type): bool |
|
117 | + public function instanceof(TypeInterface $type): bool |
|
118 | 118 | { |
119 | 119 | $needle = $type->getName(); |
120 | 120 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | an object or as the key for a cache. The ID type is serialized in the |
31 | 31 | same way as a String; however, defining it as an ID signifies that it |
32 | 32 | is not intended to be human‐readable. |
33 | -Description; |
|
33 | +description; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * BooleanScalar constructor. |
@@ -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 |
@@ -30,16 +30,16 @@ |
||
30 | 30 | */ |
31 | 31 | public static function getType(): TypeInterface |
32 | 32 | { |
33 | - return Type::of(Type::INTERFACE); |
|
33 | + return Type::of(Type::interface); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param TypeDefinition $definition |
38 | 38 | * @return bool |
39 | 39 | */ |
40 | - public function instanceOf($definition): bool |
|
40 | + public function instanceof($definition): bool |
|
41 | 41 | { |
42 | - return $this->isImplements($definition) || parent::instanceOf($definition); |
|
42 | + return $this->isImplements($definition) || parent::instanceof($definition); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 |
@@ -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 | ], |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @param TypeInterface $type |
196 | 196 | * @return bool |
197 | 197 | */ |
198 | - public function instanceOf(TypeInterface $type): bool; |
|
198 | + public function instanceof(TypeInterface $type): bool; |
|
199 | 199 | |
200 | 200 | /** |
201 | 201 | * @param string $type |