private function parseDocComment($comment)
    {
        $data = array();
        preg_match_all('/^\s*\*[*\s]*(@.+)$/m', $comment, $items);
        if ($items && isset($items[1])) {
            foreach ($items[1] as $item) {
                $parts = explode(' ', $item);
                $key = array_shift($parts);
                $data[$key][] = trim(implode(' ', $parts));
            }
        }

        return $data;
    }
private function parseDocComment($comment)
    {
        $data = array();
        preg_match_all('/^\s*\*[*\s]*(@.+)$/m', $comment, $items);
        if ($items && isset($items[1])) {
            foreach ($items[1] as $item) {
                $parts = explode(' ', $item);
                $key = array_shift($parts);
                $data[$key][] = trim(implode(' ', $parts));
            }
        }

        return $data;
    }
private function parseDocComment ( $ comment ) { $ data = array ( ) ; preg_match_all ( '/^\s*\*[*\s]*(@.+)$/m' , $ comment , $ items ) ; if ( $ items && isset ( $ items [ 1 ] ) ) { foreach ( $ items [ 1 ] as $ item ) { $ parts = explode ( ' ' , $ item ) ; $ key = array_shift ( $ parts ) ; $ data [ $ key ] [ ] = trim ( implode ( ' ' , $ parts ) ) ; } } return $ data ; }
Parse annotations out of a doc comment
@param  str   $comment Doc comment to parse
@return str[]
Parse annotations out of a doc comment