Api\StructType\ApiBannerInfo::setText PHP Method

setText() public method

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