Api\StructType\ApiCampaignGetItem::setExcludedSites PHP Method

setExcludedSites() public method

Set ExcludedSites value This property is removable from request (nillable=true+minOccurs=0), therefore if the value assigned to this property is null, it is removed from this object
public setExcludedSites ( ApiArrayOfString $excludedSites = null ) : ApiCampaignGetItem
$excludedSites Api\ArrayType\ApiArrayOfString
return ApiCampaignGetItem
    public function setExcludedSites(\Api\ArrayType\ApiArrayOfString $excludedSites = null)
    {
        if (is_null($excludedSites) || is_array($excludedSites) && empty($excludedSites)) {
            unset($this->ExcludedSites);
        } else {
            $this->ExcludedSites = $excludedSites;
        }
        return $this;
    }