src/Constraints/Constraint.php
public function logicalOperator($operator = null)
    {
        if (is_null($operator)) {
            return $this->logicalOperator;
        }

        Helpers::ensureValidLogicalOperator($operator);

        $this->logicalOperator = $operator;

        return $this;
    }
public function logicalOperator($operator = null)
    {
        if (is_null($operator)) {
            return $this->logicalOperator;
        }

        Helpers::ensureValidLogicalOperator($operator);

        $this->logicalOperator = $operator;

        return $this;
    }
public function logicalOperator ( $ operator = null ) { if ( is_null ( $ operator ) ) { return $ this -> logicalOperator ; } Helpers :: ensureValidLogicalOperator ( $ operator ) ; $ this -> logicalOperator = $ operator ; return $ this ; }
Set the logical operator to use when checked after a previous constraint.

@param  string|null  $operator
@return $this|string
Set the logical operator to use when checked after a previous constraint .