@@ -30,19 +30,19 @@ |
||
| 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 | 42 | // Return a positive response if the parent type (like Object or Interface) |
| 43 | 43 | // can implement the desired type. |
| 44 | 44 | return $this->isImplements($definition) || |
| 45 | - parent::instanceOf($definition); |
|
| 45 | + parent::instanceof($definition); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -30,19 +30,19 @@ |
||
| 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 | 42 | // Return a positive response if the parent type (like Object or Interface) |
| 43 | 43 | // can implement the desired type. |
| 44 | 44 | return $this->isImplements($definition) || |
| 45 | - parent::instanceOf($definition); |
|
| 45 | + parent::instanceof($definition); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |