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;
}