src/DataDefinition/Palette/Builder/Event/CreatePropertyValueConditionEvent.php
public function setPropertyValueCondition($condition)
    {
        if (!($condition instanceof PalettePropertyValueCondition)
            && (!$condition instanceof PropertyValueCondition)
        ) {
            throw new DcGeneralInvalidArgumentException(
                'The condition is invalid. ' .
                ' Only use PalettePropertyValueCondition or PropertyValueCondition.'
            );
        }

        $this->condition = $condition;
        return $this;
    }
public function setPropertyValueCondition($condition)
    {
        if (!($condition instanceof PalettePropertyValueCondition)
            && (!$condition instanceof PropertyValueCondition)
        ) {
            throw new DcGeneralInvalidArgumentException(
                'The condition is invalid. ' .
                ' Only use PalettePropertyValueCondition or PropertyValueCondition.'
            );
        }

        $this->condition = $condition;
        return $this;
    }
public function setPropertyValueCondition ( $ condition ) { if ( ! ( $ condition instanceof PalettePropertyValueCondition ) && ( ! $ condition instanceof PropertyValueCondition ) ) { throw new DcGeneralInvalidArgumentException ( 'The condition is invalid. ' . ' Only use PalettePropertyValueCondition or PropertyValueCondition.' ) ; } $ this -> condition = $ condition ; return $ this ; }
Set the property value condition.

@param PalettePropertyValueCondition|PropertyValueCondition $condition The property value condition.

@return CreatePropertyValueConditionEvent

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