yii\twig\Extension::call PHP Method

call() public method

Calls a method
public call ( string $className, string $method, array $arguments = null ) : mixed
$className string class name
$method string method name
$arguments array
return mixed
    public function call($className, $method, $arguments = null)
    {
        $callable = [$className, $method];
        if ($arguments === null) {
            return call_user_func($callable);
        } else {
            return call_user_func_array($callable, $arguments);
        }
    }