public function getDocstringWithoutComments()
    {
        if (!$this->contents) {
            return null;
        }

        $string = \substr($this->contents, 3, -2);
        $string = \preg_replace('/^\\s*\\*\\s*?(\\S|$)/m', '\\1', $string);

        return \trim($string);
    }
public function getDocstringWithoutComments()
    {
        if (!$this->contents) {
            return null;
        }

        $string = \substr($this->contents, 3, -2);
        $string = \preg_replace('/^\\s*\\*\\s*?(\\S|$)/m', '\\1', $string);

        return \trim($string);
    }
public function getDocstringWithoutComments ( ) { if ( ! $ this -> contents ) { return null ; } $ string = \ substr ( $ this -> contents , 3 , - 2 ) ; $ string = \ preg_replace ( '/^\\s*\\*\\s*?(\\S|$)/m' , '\\1' , $ string ) ; return \ trim ( $ string ) ; }
Returns the representation's docstring without surrounding comments.

Note that this will not work flawlessly.

On comments with whitespace after the stars the lines will begin with
whitespace, since we can't accurately guess how much of an indentation
is required.

And on lines without stars on the left this may eat bullet points.

Long story short: If you want the docstring read the contents. If you
absolutely must have it without comments (ie renderValueShort) this will
probably do.

@return null|string Docstring with comments stripped
Returns the representation s docstring without surrounding comments .