public static function description(string $comment): string
    {
        $comment = \str_replace("\r", '', \trim(\preg_replace('/^\s*\**( |\t)?/m', '', trim($comment, '/'))));

        if (\preg_match('/^\s*@\w+/m', $comment, $matches, \PREG_OFFSET_CAPTURE)) {
            $comment = \trim(\substr($comment, 0, $matches[0][1]));
        }

        return $comment;
    }
public static function description(string $comment): string
    {
        $comment = \str_replace("\r", '', \trim(\preg_replace('/^\s*\**( |\t)?/m', '', trim($comment, '/'))));

        if (\preg_match('/^\s*@\w+/m', $comment, $matches, \PREG_OFFSET_CAPTURE)) {
            $comment = \trim(\substr($comment, 0, $matches[0][1]));
        }

        return $comment;
    }
public static function description ( string $ comment ) : string { $ comment = \ str_replace ( "\r" , '' , \ trim ( \ preg_replace ( '/^\s*\**( |\t)?/m' , '' , trim ( $ comment , '/' ) ) ) ) ; if ( \ preg_match ( '/^\s*@\w+/m' , $ comment , $ matches , \ PREG_OFFSET_CAPTURE ) ) { $ comment = \ trim ( \ substr ( $ comment , 0 , $ matches [ 0 ] [ 1 ] ) ) ; } return $ comment ; }
Returns full description from the doc-block.
If have multi line text, will return multi line.
@param string $comment
@return string
Returns full description from the doc - block . If have multi line text will return multi line .