public static function fetchAnnotationsFromDocblock($annotation, $docblock)
    {
        if (preg_match_all(sprintf(self::$regex, $annotation), $docblock, $matched)) {
            return $matched[1];
        }
        return [];
    }
public static function fetchAnnotationsFromDocblock($annotation, $docblock)
    {
        if (preg_match_all(sprintf(self::$regex, $annotation), $docblock, $matched)) {
            return $matched[1];
        }
        return [];
    }
public static function fetchAnnotationsFromDocblock ( $ annotation , $ docblock ) { if ( preg_match_all ( sprintf ( self :: $ regex , $ annotation ) , $ docblock , $ matched ) ) { return $ matched [ 1 ] ; } return [ ] ; }
Parses raw comment for annotations

@param $docblock
@param $annotation
@return array
Parses raw comment for annotations