protected function convertAnnotationObj($reflection)
    {
        $annotations = (array) $reflection->getAnnotations();
        $result = array();

        foreach ($annotations as $annotation) {
            if (! array_key_exists($annotation['method'], $result)) {
                $result[$annotation['method']] = array();
            }

            foreach ($annotation['args'] as $key => $value) {
                if (is_numeric($key)) {
                    $result[$annotation['method']][] = $value;
                } else {
                    $result[$annotation['method']][$key] = $value;
                }
            }
        }

        return $result;
    }
protected function convertAnnotationObj($reflection)
    {
        $annotations = (array) $reflection->getAnnotations();
        $result = array();

        foreach ($annotations as $annotation) {
            if (! array_key_exists($annotation['method'], $result)) {
                $result[$annotation['method']] = array();
            }

            foreach ($annotation['args'] as $key => $value) {
                if (is_numeric($key)) {
                    $result[$annotation['method']][] = $value;
                } else {
                    $result[$annotation['method']][$key] = $value;
                }
            }
        }

        return $result;
    }
protected function convertAnnotationObj ( $ reflection ) { $ annotations = ( array ) $ reflection -> getAnnotations ( ) ; $ result = array ( ) ; foreach ( $ annotations as $ annotation ) { if ( ! array_key_exists ( $ annotation [ 'method' ] , $ result ) ) { $ result [ $ annotation [ 'method' ] ] = array ( ) ; } foreach ( $ annotation [ 'args' ] as $ key => $ value ) { if ( is_numeric ( $ key ) ) { $ result [ $ annotation [ 'method' ] ] [ ] = $ value ; } else { $ result [ $ annotation [ 'method' ] ] [ $ key ] = $ value ; } } } return $ result ; }
This method converts Notoj returned array to reader data

@param  Mixed/Reflection  $reflection a Notoj reflection object
@return array             annoations array
This method converts Notoj returned array to reader data