Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
public static __callStatic ( string $name, array $arguments ) : static | ||
$name | string | |
$arguments | array | |
return | static |
public static function __callStatic($name, $arguments) { try { return parent::__callStatic($name, $arguments); } catch (\BadMethodCallException $e) { throw new BadMethodCallException("", $e); } }