Api\StructType\ApiBannerInfo::addToAdWarnings PHP Method

addToAdWarnings() public method

Add item to AdWarnings value
public addToAdWarnings ( string $item ) : ApiBannerInfo
$item string
return ApiBannerInfo
    public function addToAdWarnings($item)
    {
        // validation for constraint: itemType
        if (!is_string($item)) {
            throw new \InvalidArgumentException(sprintf('The AdWarnings property can only contain items of string, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
        }
        $this->AdWarnings[] = $item;
        return $this;
    }