BaseEnum : Remove unused __call

This commit is contained in:
Jérémy Munsch 2021-09-11 22:42:26 +02:00
parent bb09844610
commit 3e654f5d3c
No known key found for this signature in database
GPG key ID: 677E1F9F80C16560

View file

@ -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