Api\StructType\ApiNewsArticle::setSnippet PHP Method

setSnippet() public method

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