@@ -36,5 +36,5 @@ |
||
| 36 | 36 | * @param TypeDefinition $definition |
| 37 | 37 | * @return bool |
| 38 | 38 | */ |
| 39 | - public function instanceOf(TypeDefinition $definition): bool; |
|
| 39 | + public function instanceof(TypeDefinition $definition): bool; |
|
| 40 | 40 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * @param TypeInterface $type |
| 68 | 68 | * @return bool |
| 69 | 69 | */ |
| 70 | - public function instanceOf(TypeInterface $type): bool |
|
| 70 | + public function instanceof(TypeInterface $type): bool |
|
| 71 | 71 | { |
| 72 | 72 | return $this instanceof $type; |
| 73 | 73 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * @param TypeDefinition $definition |
| 64 | 64 | * @return bool |
| 65 | 65 | */ |
| 66 | - public function instanceOf(TypeDefinition $definition): bool |
|
| 66 | + public function instanceof(TypeDefinition $definition): bool |
|
| 67 | 67 | { |
| 68 | 68 | return $this instanceof $definition; |
| 69 | 69 | } |
@@ -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, |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | public const LOCATION_TO_TYPES = [ |
| 182 | 182 | self::SCALAR => Type::SCALAR, |
| 183 | 183 | self::OBJECT => Type::OBJECT, |
| 184 | - self::INTERFACE => Type::INTERFACE, |
|
| 184 | + self::interface => Type::interface, |
|
| 185 | 185 | self::UNION => Type::UNION, |
| 186 | 186 | self::ENUM => Type::ENUM, |
| 187 | 187 | self::INPUT_OBJECT => Type::INPUT_OBJECT, |
@@ -30,15 +30,15 @@ |
||
| 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(TypeDefinition $definition): bool |
|
| 40 | + public function instanceof(TypeDefinition $definition): bool |
|
| 41 | 41 | { |
| 42 | - return $this->isImplementsDefinition($definition) || parent::instanceOf($definition); |
|
| 42 | + return $this->isImplementsDefinition($definition) || parent::instanceof($definition); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - public const INTERFACE = 'Interface'; |
|
| 35 | + public const interface = 'Interface'; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var string |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public const ROOT_TYPES = [ |
| 108 | 108 | self::SCALAR, |
| 109 | 109 | self::OBJECT, |
| 110 | - self::INTERFACE, |
|
| 110 | + self::interface, |
|
| 111 | 111 | self::UNION, |
| 112 | 112 | self::ENUM, |
| 113 | 113 | self::INPUT_OBJECT, |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public const INHERITANCE_TREE = [ |
| 123 | 123 | self::ANY => [ |
| 124 | - self::INTERFACE => [ |
|
| 124 | + self::interface => [ |
|
| 125 | 125 | self::OBJECT => [ |
| 126 | 126 | self::INPUT_OBJECT => [ |
| 127 | 127 | self::DIRECTIVE |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * @param Type $type |
| 152 | 152 | * @return bool |
| 153 | 153 | */ |
| 154 | - public function instanceOf(Type $type): bool; |
|
| 154 | + public function instanceof(Type $type): bool; |
|
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | 157 | * @return string |