Api\StructType\ApiBannerInfo::setHref PHP Method

setHref() public method

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