Api\StructType\ApiNewsArticle::setUrl PHP 메소드

setUrl() 공개 메소드

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