public static function Enum::__callStatic in Drupal driver for SQL Server and SQL Azure 8.2
Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
Parameters
string $name:
array $arguments:
Return value
static
Throws
BadMethodCallException
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Component/ Enum.php, line 155
Class
- Enum
- Enum class.
Namespace
Drupal\Driver\Database\sqlsrv\ComponentCode
public static function __callStatic($name, $arguments) {
if (defined("static::{$name}")) {
return new static(constant("static::{$name}"));
}
throw new BadMethodCallException("No static method or enum constant '{$name}' in class " . get_called_class());
}