public static function fetchAllAnnotationsFromDocblock($docblock)
    {
        $annotations = [];
        if (!preg_match_all(sprintf(self::$regex, '(\w+)'), $docblock, $matched)) {
            return $annotations;
        }
        foreach ($matched[1] as $k => $annotation) {
            if (!isset($annotations[$annotation])) {
                $annotations[$annotation] = [];
            }
            $annotations[$annotation][] = $matched[2][$k];
        };
        return $annotations;
    }
public static function fetchAllAnnotationsFromDocblock($docblock)
    {
        $annotations = [];
        if (!preg_match_all(sprintf(self::$regex, '(\w+)'), $docblock, $matched)) {
            return $annotations;
        }
        foreach ($matched[1] as $k => $annotation) {
            if (!isset($annotations[$annotation])) {
                $annotations[$annotation] = [];
            }
            $annotations[$annotation][] = $matched[2][$k];
        };
        return $annotations;
    }
public static function fetchAllAnnotationsFromDocblock ( $ docblock ) { $ annotations = [ ] ; if ( ! preg_match_all ( sprintf ( self :: $ regex , '(\w+)' ) , $ docblock , $ matched ) ) { return $ annotations ; } foreach ( $ matched [ 1 ] as $ k => $ annotation ) { if ( ! isset ( $ annotations [ $ annotation ] ) ) { $ annotations [ $ annotation ] = [ ] ; } $ annotations [ $ annotation ] [ ] = $ matched [ 2 ] [ $ k ] ; } ; return $ annotations ; }
Fetches all available annotations

@param $docblock
@return array
Fetches all available annotations