protected function getComments(string $padding = '') : string
    {
        $comments = '';

        if (count($this->comments) > 0) {
            $comments = $padding . "/**\n";
            foreach ($this->comments as $line) {
                $comments .= $this->truncateComment($padding, $line);
            }
            $comments .= $padding . " */\n";
        }

        return $comments;
    }
protected function getComments(string $padding = '') : string
    {
        $comments = '';

        if (count($this->comments) > 0) {
            $comments = $padding . "/**\n";
            foreach ($this->comments as $line) {
                $comments .= $this->truncateComment($padding, $line);
            }
            $comments .= $padding . " */\n";
        }

        return $comments;
    }
protected function getComments ( string $ padding = '' ) : string { $ comments = '' ; if ( count ( $ this -> comments ) > 0 ) { $ comments = $ padding . "/**\n" ; foreach ( $ this -> comments as $ line ) { $ comments .= $ this -> truncateComment ( $ padding , $ line ) ; } $ comments .= $ padding . " */\n" ; } return $ comments ; }
Create the comments section.
@param string $padding Sequence of characters to place before each line
of the comments.
@return string Return the comments string.
Create the comments section .