I\'d like to create a function called \"new\" and a class called \"case\".
Can I do that in PHP?
Along the lines of what Benjamin mentioned, there is an interesting use of "clone", (which is reserved) in this class, line 545
public function __call($method, $args)
{
if ('clone' == $method) {
return call_user_func_array(array($this, 'cloneRepository'), $args);
} else {
$class = get_called_class();
$message = "Call to undefined method $class::$method()";
throw new \BadMethodCallException($message);
}
}