public function setType($type, $description = null) { $this->type = $type; if (null !== $description) { $this->setTypeDescription($description); } return $this; }