yii\twig\Extension::call PHP 메소드

call() 공개 메소드

Calls a method
public call ( string $className, string $method, array $arguments = null ) : mixed
$className string class name
$method string method name
$arguments array
리턴 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);
        }
    }