PhpParser\Builder\Declaration::setDocComment PHP Метод

setDocComment() публичный Метод

Sets doc comment for the declaration.
public setDocComment ( PhpParser\Comment\Doc | string $docComment )
$docComment PhpParser\Comment\Doc | string Doc comment to set
    public function setDocComment($docComment)
    {
        $this->attributes['comments'] = array($this->normalizeDocComment($docComment));
        return $this;
    }