Chris@0: addStmt($stmt); Chris@0: } Chris@0: Chris@0: return $this; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Sets doc comment for the declaration. Chris@0: * Chris@0: * @param PhpParser\Comment\Doc|string $docComment Doc comment to set Chris@0: * Chris@0: * @return $this The builder instance (for fluid interface) Chris@0: */ Chris@0: public function setDocComment($docComment) { Chris@0: $this->attributes['comments'] = array( Chris@0: $this->normalizeDocComment($docComment) Chris@0: ); Chris@0: Chris@0: return $this; Chris@0: } Chris@0: }