PhpSandbox\PHPSandbox::__call PHP Méthode

__call() public méthode

Magic method to provide API compatibility for v1.* code
public __call ( string $method, array $arguments ) : mixed
$method string The method name to call
$arguments array The method arguments to call
Résultat mixed
    public function __call($method, $arguments)
    {
        $renamed_method = lcfirst(str_replace('_', '', ucwords($method, '_')));
        if (method_exists($this, $renamed_method)) {
            return call_user_func_array([$this, $renamed_method], $arguments);
        }
        trigger_error('Fatal error: Call to undefined method PHPSandbox::' . $method, E_ERROR);
        return null;
    }
PHPSandbox