@@ -151,7 +151,7 @@ |
||
151 | 151 | /** |
152 | 152 | * {@inheritDoc} |
153 | 153 | */ |
154 | - public function instanceOf(TypeInterface $type): bool |
|
154 | + public function instanceof(TypeInterface $type): bool |
|
155 | 155 | { |
156 | 156 | $needle = $type->getName(); |
157 | 157 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * @return \Generator |
81 | 81 | * @throws \LogicException |
82 | 82 | */ |
83 | - private function forEach(Readable $readable, RuleInterface $ast): \Generator |
|
83 | + private function foreach(Readable $readable, RuleInterface $ast): \Generator |
|
84 | 84 | { |
85 | 85 | $builder = $this->factory->resolve($readable, $ast); |
86 | 86 | $result = $builder->build($readable, $ast); |
@@ -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 |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | self::SCHEMA, |
156 | 156 | self::SCALAR, |
157 | 157 | self::OBJECT, |
158 | - self::INTERFACE, |
|
158 | + self::interface, |
|
159 | 159 | self::UNION, |
160 | 160 | self::ENUM, |
161 | 161 | self::INPUT_OBJECT, |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | public const ALLOWS_TO_OUTPUT = [ |
204 | 204 | self::SCALAR, |
205 | 205 | self::OBJECT, |
206 | - self::INTERFACE, |
|
206 | + self::interface, |
|
207 | 207 | self::UNION, |
208 | 208 | self::ENUM, |
209 | 209 | self::INPUT_OBJECT, |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @var string[]|array[] |
221 | 221 | */ |
222 | 222 | public const INHERITANCE_TREE = [ |
223 | - self::INTERFACE => [ |
|
223 | + self::interface => [ |
|
224 | 224 | self::OBJECT => [ |
225 | 225 | self::INPUT_OBJECT, |
226 | 226 | ], |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * @param TypeInterface $type |
278 | 278 | * @return bool |
279 | 279 | */ |
280 | - public function instanceOf(TypeInterface $type): bool; |
|
280 | + public function instanceof(TypeInterface $type): bool; |
|
281 | 281 | |
282 | 282 | /** |
283 | 283 | * Returns true if the type is the same as the current type. |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $interface = new TypeDefinition($ast->getFullName()); |
32 | 32 | $interface->in($file, $ast->getOffset()); |
33 | 33 | |
34 | - $interface->type = Type::of(Type::INTERFACE); |
|
34 | + $interface->type = Type::of(Type::interface); |
|
35 | 35 | $interface->description = $ast->getDescription(); |
36 | 36 | |
37 | 37 | $this->loadInterfaces($ast, $interface); |