src/DataDefinition/Palette/Builder/Event/CreateConditionEvent.php
public function setCondition($condition)
    {
        if ((!$condition instanceof PaletteConditionInterface)
            && (!$condition instanceof PropertyConditionInterface)
        ) {
            throw new DcGeneralInvalidArgumentException(
                'The condition is invalid. ' .
                ' Only use PaletteConditionInterface or PropertyConditionInterface.'
            );
        }

        $this->condition = $condition;

        return $this;
    }
public function setCondition($condition)
    {
        if ((!$condition instanceof PaletteConditionInterface)
            && (!$condition instanceof PropertyConditionInterface)
        ) {
            throw new DcGeneralInvalidArgumentException(
                'The condition is invalid. ' .
                ' Only use PaletteConditionInterface or PropertyConditionInterface.'
            );
        }

        $this->condition = $condition;

        return $this;
    }
public function setCondition ( $ condition ) { if ( ( ! $ condition instanceof PaletteConditionInterface ) && ( ! $ condition instanceof PropertyConditionInterface ) ) { throw new DcGeneralInvalidArgumentException ( 'The condition is invalid. ' . ' Only use PaletteConditionInterface or PropertyConditionInterface.' ) ; } $ this -> condition = $ condition ; return $ this ; }
Set the condition.

@param PaletteConditionInterface|PropertyConditionInterface $condition The condition to use.

@return CreateConditionEvent

@throws DcGeneralInvalidArgumentException When an invalid condition has been passed.
Set the condition .