Api\StructType\ApiBannerInfo::setType PHP Method

setType() public method

Set Type value
public setType ( string $type = null ) : ApiBannerInfo
$type string
return ApiBannerInfo
    public function setType($type = null)
    {
        // validation for constraint: string
        if (!is_null($type) && !is_string($type)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($type)), __LINE__);
        }
        $this->Type = $type;
        return $this;
    }