Cake\ElasticSearch\FilterBuilder::__call PHP Метод

__call() публичный Метод

Helps calling the and() and or() methods transparently.
public __call ( string $method, array $args ) : Elastica\Filter\AbstractFilter
$method string The method name.
$args array The argumemts to pass to the method.
Результат Elastica\Filter\AbstractFilter
    public function __call($method, $args)
    {
        if (in_array($method, ['and', 'or'])) {
            return call_user_func_array([$this, $method . '_'], $args);
        }
        throw new \BadMethodCallException('Cannot build filter ' . $method);
    }