Nestable\Services\NestableService::__call PHP 메소드

__call() 공개 메소드

public __call ( $method, $args )
    public function __call($method, $args)
    {
        if ($this->hasMacro($method)) {
            return $this->runMacro($method, $args);
        } elseif (preg_match('/^isValid/', $method)) {
            preg_match('/For(.*?)$/', $method, $matches);
            if (count($matches) > 1) {
                return $this->isValid(strtolower($matches[1]), current($args));
            }
        }
    }