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