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

logicalOr() public method

It also accepts a single array of constraints to be concatenated.
public logicalOr ( object $constraint1 ) : LogicalOr
$constraint1 object The first of multiple constraints or an array of constraints.
return Neos\Flow\Persistence\Generic\Qom\LogicalOr
    public function logicalOr($constraint1)
    {
        if (is_array($constraint1)) {
            $resultingConstraint = array_shift($constraint1);
            $constraints = $constraint1;
        } else {
            $constraints = func_get_args();
            $resultingConstraint = array_shift($constraints);
        }
        if ($resultingConstraint === null) {
            throw new InvalidNumberOfConstraintsException('There must be at least one constraint or a non-empty array of constraints given.', 1268056289);
        }
        foreach ($constraints as $constraint) {
            $resultingConstraint = $this->qomFactory->_or($resultingConstraint, $constraint);
        }
        return $resultingConstraint;
    }