Ergo\Decorator::__call PHP 메소드

__call() 공개 메소드

Forward method calls.
public __call ( String $method, Array $args ) : Unknown
$method String method name
$args Array method arguments
리턴 Unknown method return value
    public function __call($method, $args)
    {
        $callback = array($this->__instance, $method);
        if (is_callable($callback)) {
            return call_user_func_array($callback, $args);
        } else {
            throw new \BadMethodCallException(sprintf('%s::%s() is not callable', get_class($this->__instance), $method));
        }
    }