src/AbstractQuerySerialyser.php
protected function getOperationValue($value) {
        
        if(is_a($value, '\\oat\\search\\base\\QueryBuilderInterface')) {
            $serialyser = new self();
            $serialyser->setDriverEscaper($this->getDriverEscaper())->setServiceLocator($this->getServiceLocator())->setOptions($this->getOptions());
            $value = $serialyser->setCriteriaList($value)->prefixQuery()->serialyse();
        }
        return $value;
    }
protected function getOperationValue($value) {
        
        if(is_a($value, '\\oat\\search\\base\\QueryBuilderInterface')) {
            $serialyser = new self();
            $serialyser->setDriverEscaper($this->getDriverEscaper())->setServiceLocator($this->getServiceLocator())->setOptions($this->getOptions());
            $value = $serialyser->setCriteriaList($value)->prefixQuery()->serialyse();
        }
        return $value;
    }
protected function getOperationValue ( $ value ) { if ( is_a ( $ value , '\\oat\\search\\base\\QueryBuilderInterface' ) ) { $ serialyser = new self ( ) ; $ serialyser -> setDriverEscaper ( $ this -> getDriverEscaper ( ) ) -> setServiceLocator ( $ this -> getServiceLocator ( ) ) -> setOptions ( $ this -> getOptions ( ) ) ; $ value = $ serialyser -> setCriteriaList ( $ value ) -> prefixQuery ( ) -> serialyse ( ) ; } return $ value ; }
convert value to string if it's an object
@param mixed $value
@return string
convert value to string if it s an object