protected function extractDescription($comments = '')
    {
        $description = '';
        $docs = explode("\n", $comments);
        if (count($docs)) {
            foreach ($docs as &$doc) {
                if (!preg_match('/(\*\*|\@)/', $doc) && preg_match('/\*\ /', $doc)) {
                    $doc = explode('* ', $doc);
                    $description = $doc[1];
                }
            }
        }

        return $description;
    }
protected function extractDescription($comments = '')
    {
        $description = '';
        $docs = explode("\n", $comments);
        if (count($docs)) {
            foreach ($docs as &$doc) {
                if (!preg_match('/(\*\*|\@)/', $doc) && preg_match('/\*\ /', $doc)) {
                    $doc = explode('* ', $doc);
                    $description = $doc[1];
                }
            }
        }

        return $description;
    }
protected function extractDescription ( $ comments = '' ) { $ description = '' ; $ docs = explode ( "\n" , $ comments ) ; if ( count ( $ docs ) ) { foreach ( $ docs as & $ doc ) { if ( ! preg_match ( '/(\*\*|\@)/' , $ doc ) && preg_match ( '/\*\ /' , $ doc ) ) { $ doc = explode ( '* ' , $ doc ) ; $ description = $ doc [ 1 ] ; } } } return $ description ; }
Method that extract the description for the endpoint

@param string $comments

@return string
Method that extract the description for the endpoint