BaseEnum : Remove unused __call
This commit is contained in:
parent
bb09844610
commit
3e654f5d3c
1 changed files with 0 additions and 16 deletions
|
|
@ -68,22 +68,6 @@ abstract class BaseEnum implements JsonSerializable
|
|||
return static::make($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param array $arguments
|
||||
* @return bool|mixed
|
||||
* @throws TypeError If anything else thant string or int is used.
|
||||
* @throws BadMethodCallException If a matching definition cannot be found.
|
||||
*/
|
||||
public function __call(string $name, array $arguments)
|
||||
{
|
||||
if (strpos($name, 'is') === 0) {
|
||||
$other = static::make(substr($name, 2));
|
||||
return $this->equals($other);
|
||||
}
|
||||
return self::__callStatic($name, $arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* Output the value as a string
|
||||
* @return string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue