Neos\Flow\Persistence\Generic\Query::equals PHP Method

equals() public method

It matches if the $operand equals the value of the property named $propertyName. If $operand is NULL a strict check for NULL is done. For strings the comparison can be done with or without case-sensitivity.
public equals ( string $propertyName, mixed $operand, boolean $caseSensitive = true ) : object
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
$caseSensitive boolean Whether the equality test should be done case-sensitive for strings
return object
    public function equals($propertyName, $operand, $caseSensitive = true)
    {
        if ($operand === null) {
            $comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_IS_NULL);
        } elseif (is_object($operand) || $caseSensitive) {
            $comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_EQUAL_TO, $operand);
        } else {
            $comparison = $this->qomFactory->comparison($this->qomFactory->lowerCase($this->qomFactory->propertyValue($propertyName, '_entity')), QueryInterface::OPERATOR_EQUAL_TO, strtolower($operand));
        }
        return $comparison;
    }