public function setDocblock($doc) { if (is_string($doc)) { $doc = trim($doc); $doc = new Docblock($doc); } $this->docblock = $doc; return $this; }