src/Traits/CommentTrait.php
public function setComment($comment): self
    {
        if (!empty($comment)) {
            if (is_array($comment)) {
                $this->docComment->setLines($comment);
            } elseif (is_string($comment)) {
                $this->docComment->setString($comment);
            }
        }

        return $this;
    }
public function setComment($comment): self
    {
        if (!empty($comment)) {
            if (is_array($comment)) {
                $this->docComment->setLines($comment);
            } elseif (is_string($comment)) {
                $this->docComment->setString($comment);
            }
        }

        return $this;
    }
public function setComment ( $ comment ) : self { if ( ! empty ( $ comment ) ) { if ( is_array ( $ comment ) ) { $ this -> docComment -> setLines ( $ comment ) ; } elseif ( is_string ( $ comment ) ) { $ this -> docComment -> setString ( $ comment ) ; } } return $ this ; }
Set comment value.

@param string|array $comment

@return $this
Set comment value .