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

like() public method

Matches if the property named $propertyName is like the $operand, using standard SQL wildcards.
public like ( string $propertyName, string $operand, boolean $caseSensitive = true ) : object
$propertyName string The name of the property to compare against
$operand string The value to compare with
$caseSensitive boolean Whether the matching should be done case-sensitive
return object
    public function like($propertyName, $operand, $caseSensitive = true)
    {
        if (!is_string($operand)) {
            throw new InvalidQueryException('Operand must be a string, was ' . gettype($operand), 1276781107);
        }
        if ($caseSensitive) {
            $comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_LIKE, $operand);
        } else {
            $comparison = $this->qomFactory->comparison($this->qomFactory->lowerCase($this->qomFactory->propertyValue($propertyName, '_entity')), QueryInterface::OPERATOR_LIKE, strtolower($operand));
        }
        return $comparison;
    }