src/factory/QueryFactory.php
public function get($className , array $options = array())  {
        
        $Query = $this->getServiceLocator()->get($className);
        if($this->isValidClass($Query)) {
            return $Query->setServiceLocator($this->getServiceLocator())->setOptions($options);
        }
    }
public function get($className , array $options = array())  {
        
        $Query = $this->getServiceLocator()->get($className);
        if($this->isValidClass($Query)) {
            return $Query->setServiceLocator($this->getServiceLocator())->setOptions($options);
        }
    }
public function get ( $ className , array $ options = array ( ) ) { $ Query = $ this -> getServiceLocator ( ) -> get ( $ className ) ; if ( $ this -> isValidClass ( $ Query ) ) { return $ Query -> setServiceLocator ( $ this -> getServiceLocator ( ) ) -> setOptions ( $ options ) ; } }
return a new Query
@param string $className
@param array $options
@return \oat\search\factory\QueryInterface
@throws \InvalidArgumentException
return a new Query