Doctrine\Common\Collections\Expr\Comparison::getValue PHP Method

getValue() public method

public getValue ( ) : Doctrine\Common\Collections\Expr\Value
return Doctrine\Common\Collections\Expr\Value
    public function getValue()
    {
        return $this->value;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function walkComparison(Comparison $comparison)
 {
     $parameterName = str_replace('.', '_', $comparison->getField());
     $value = $this->walkValue($comparison->getValue());
     if ($comparison->getOperator() === Comparison::CONTAINS) {
         $value = "%{$value}%";
     }
     $placeholder = null;
     if ($this->walkValue($comparison->getValue()) !== null) {
         $this->parameters[$parameterName] = $value;
         $placeholder = ':' . $parameterName;
     }
     return $this->doWalkComparison($this->getFieldName($comparison->getField()), $comparison->getOperator(), $placeholder);
 }
All Usage Examples Of Doctrine\Common\Collections\Expr\Comparison::getValue