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

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

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