public function setContent($content) { parent::setContent($content); $parts = preg_split('/\\s+/Su', $this->description, 2); // any output is considered a type $this->type = $parts[0]; $this->setDescription(isset($parts[1]) ? $parts[1] : ''); $this->content = $content; return $this; }