framework/db/conditions/LikeCondition.php
public static function fromArrayDefinition($operator, $operands)
    {
        if (!isset($operands[0], $operands[1])) {
            throw new InvalidArgumentException("Operator '$operator' requires two operands.");
        }

        $condition = new static($operands[0], $operator, $operands[1]);
        if (isset($operands[2])) {
            $condition->escapingReplacements = $operands[2];
        }

        return $condition;
    }
public static function fromArrayDefinition($operator, $operands)
    {
        if (!isset($operands[0], $operands[1])) {
            throw new InvalidArgumentException("Operator '$operator' requires two operands.");
        }

        $condition = new static($operands[0], $operator, $operands[1]);
        if (isset($operands[2])) {
            $condition->escapingReplacements = $operands[2];
        }

        return $condition;
    }
public static function fromArrayDefinition ( $ operator , $ operands ) { if ( ! isset ( $ operands [ 0 ] , $ operands [ 1 ] ) ) { throw new InvalidArgumentException ( "Operator '$operator' requires two operands." ) ; } $ condition = new static ( $ operands [ 0 ] , $ operator , $ operands [ 1 ] ) ; if ( isset ( $ operands [ 2 ] ) ) { $ condition -> escapingReplacements = $ operands [ 2 ] ; } return $ condition ; }
{@inheritdoc}
@throws InvalidArgumentException if wrong number of operands have been given.
{