src/DataDefinition/Palette/Builder/Event/AddConditionEvent.php
public function setTarget($target)
    {
        if ((!$target instanceof PaletteInterface) && (!$target instanceof PropertyInterface)) {
            throw new DcGeneralInvalidArgumentException();
        }

        $this->target = $target;
        return $this;
    }
public function setTarget($target)
    {
        if ((!$target instanceof PaletteInterface) && (!$target instanceof PropertyInterface)) {
            throw new DcGeneralInvalidArgumentException();
        }

        $this->target = $target;
        return $this;
    }
public function setTarget ( $ target ) { if ( ( ! $ target instanceof PaletteInterface ) && ( ! $ target instanceof PropertyInterface ) ) { throw new DcGeneralInvalidArgumentException ( ) ; } $ this -> target = $ target ; return $ this ; }
Set the target.

@param PaletteInterface|PropertyInterface $target The target property or palette.

@return AddConditionEvent

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