src/factory/QueryCriterionFactory.php
public function get($className,array $options = array()) {
        $Param = $this->getServiceLocator()->get($className);
        if($this->isValidClass($Param)) {
            
            $Param->setName($options[0])
                ->setOperator($options[1])
                ->setValue($options[2])
                ->setServiceLocator($this->getServiceLocator());
            
            return $Param;
        }
        
    }
public function get($className,array $options = array()) {
        $Param = $this->getServiceLocator()->get($className);
        if($this->isValidClass($Param)) {
            
            $Param->setName($options[0])
                ->setOperator($options[1])
                ->setValue($options[2])
                ->setServiceLocator($this->getServiceLocator());
            
            return $Param;
        }
        
    }
public function get ( $ className , array $ options = array ( ) ) { $ Param = $ this -> getServiceLocator ( ) -> get ( $ className ) ; if ( $ this -> isValidClass ( $ Param ) ) { $ Param -> setName ( $ options [ 0 ] ) -> setOperator ( $ options [ 1 ] ) -> setValue ( $ options [ 2 ] ) -> setServiceLocator ( $ this -> getServiceLocator ( ) ) ; return $ Param ; } }
return a new Query param
@param string $className
@param array $options
@return \oat\search\factory\QueryCriterionInterface
@throws \InvalidArgumentException
return a new Query param