• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 16531587208

25 Jul 2025 09:05PM UTC coverage: 0.0% (-22.1%) from 22.07%
16531587208

Pull #7225

github

web-flow
Merge 23f449a58 into 02a764950
Pull Request #7225: feat: json streamer

0 of 294 new or added lines in 31 files covered. (0.0%)

11514 existing lines in 375 files now uncovered.

0 of 51976 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Metadata/NotExposed.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Metadata;
15

16
use ApiPlatform\OpenApi\Attributes\Webhook;
17
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
18
use ApiPlatform\State\OptionsInterface;
19

20
/**
21
 * A NotExposed operation is an operation declared for internal usage,
22
 * for example to generate an IRI on a resource without item operations.
23
 * It is ignored from OpenApi documentation and must return a HTTP 404.
24
 *
25
 * @author Vincent Chalamon <vincentchalamon@gmail.com>
26
 */
27
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
28
final class NotExposed extends HttpOperation
29
{
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function __construct(
34
        string $method = 'GET',
35
        ?string $uriTemplate = null,
36
        ?array $types = null,
37
        $formats = null,
38
        $inputFormats = null,
39
        $outputFormats = null,
40
        $uriVariables = null,
41
        ?string $routePrefix = null,
42
        ?string $routeName = null,
43
        ?array $defaults = null,
44
        ?array $requirements = null,
45
        ?array $options = null,
46
        ?bool $stateless = null,
47
        ?string $sunset = null,
48
        ?string $acceptPatch = null,
49
        $status = 404,
50
        ?string $host = null,
51
        ?array $schemes = null,
52
        ?string $condition = null,
53
        ?string $controller = 'api_platform.action.not_exposed',
54
        ?array $headers = null,
55
        ?array $cacheHeaders = null,
56
        ?array $paginationViaCursor = null,
57

58
        ?array $hydraContext = null,
59
        bool|OpenApiOperation|Webhook|null $openapi = false,
60
        ?array $exceptionToStatus = null,
61

62
        ?bool $queryParameterValidationEnabled = null,
63
        ?array $links = null,
64
        ?array $errors = null,
65

66
        ?string $shortName = null,
67
        ?string $class = null,
68
        ?bool $paginationEnabled = null,
69
        ?string $paginationType = null,
70
        ?int $paginationItemsPerPage = null,
71
        ?int $paginationMaximumItemsPerPage = null,
72
        ?bool $paginationPartial = null,
73
        ?bool $paginationClientEnabled = null,
74
        ?bool $paginationClientItemsPerPage = null,
75
        ?bool $paginationClientPartial = null,
76
        ?bool $paginationFetchJoinCollection = null,
77
        ?bool $paginationUseOutputWalkers = null,
78
        ?array $order = null,
79
        ?string $description = null,
80
        ?array $normalizationContext = null,
81
        ?array $denormalizationContext = null,
82
        ?bool $collectDenormalizationErrors = null,
83
        string|\Stringable|null $security = null,
84
        ?string $securityMessage = null,
85
        string|\Stringable|null $securityPostDenormalize = null,
86
        ?string $securityPostDenormalizeMessage = null,
87
        string|\Stringable|null $securityPostValidation = null,
88
        ?string $securityPostValidationMessage = null,
89
        ?string $deprecationReason = null,
90
        ?array $filters = null,
91
        ?array $validationContext = null,
92
        $input = null,
93
        $output = false,
94
        $mercure = null,
95
        $messenger = null,
96
        ?int $urlGenerationStrategy = null,
97
        ?bool $read = false,
98
        ?bool $deserialize = null,
99
        ?bool $validate = null,
100
        ?bool $write = null,
101
        ?bool $serialize = null,
102
        ?bool $fetchPartial = null,
103
        ?bool $forceEager = null,
104
        ?int $priority = null,
105
        ?string $name = null,
106
        $provider = null,
107
        $processor = null,
108
        array $extraProperties = [],
109
        ?OptionsInterface $stateOptions = null,
110
    ) {
UNCOV
111
        parent::__construct(
×
UNCOV
112
            method: $method,
×
UNCOV
113
            uriTemplate: $uriTemplate,
×
UNCOV
114
            types: $types,
×
UNCOV
115
            formats: $formats,
×
UNCOV
116
            inputFormats: $inputFormats,
×
UNCOV
117
            outputFormats: $outputFormats,
×
UNCOV
118
            uriVariables: $uriVariables,
×
UNCOV
119
            routePrefix: $routePrefix,
×
UNCOV
120
            routeName: $routeName,
×
UNCOV
121
            defaults: $defaults,
×
UNCOV
122
            requirements: $requirements,
×
UNCOV
123
            options: $options,
×
UNCOV
124
            stateless: $stateless,
×
UNCOV
125
            sunset: $sunset,
×
UNCOV
126
            acceptPatch: $acceptPatch,
×
UNCOV
127
            status: $status,
×
UNCOV
128
            host: $host,
×
UNCOV
129
            schemes: $schemes,
×
UNCOV
130
            condition: $condition,
×
UNCOV
131
            controller: $controller,
×
UNCOV
132
            headers: $headers,
×
UNCOV
133
            cacheHeaders: $cacheHeaders,
×
UNCOV
134
            paginationViaCursor: $paginationViaCursor,
×
UNCOV
135
            hydraContext: $hydraContext,
×
UNCOV
136
            openapi: $openapi,
×
UNCOV
137
            exceptionToStatus: $exceptionToStatus,
×
UNCOV
138
            queryParameterValidationEnabled: $queryParameterValidationEnabled,
×
UNCOV
139
            links: $links,
×
UNCOV
140
            errors: $errors,
×
UNCOV
141
            shortName: $shortName,
×
UNCOV
142
            class: $class,
×
UNCOV
143
            paginationEnabled: $paginationEnabled,
×
UNCOV
144
            paginationType: $paginationType,
×
UNCOV
145
            paginationItemsPerPage: $paginationItemsPerPage,
×
UNCOV
146
            paginationMaximumItemsPerPage: $paginationMaximumItemsPerPage,
×
UNCOV
147
            paginationPartial: $paginationPartial,
×
UNCOV
148
            paginationClientEnabled: $paginationClientEnabled,
×
UNCOV
149
            paginationClientItemsPerPage: $paginationClientItemsPerPage,
×
UNCOV
150
            paginationClientPartial: $paginationClientPartial,
×
UNCOV
151
            paginationFetchJoinCollection: $paginationFetchJoinCollection,
×
UNCOV
152
            paginationUseOutputWalkers: $paginationUseOutputWalkers,
×
UNCOV
153
            order: $order,
×
UNCOV
154
            description: $description,
×
UNCOV
155
            normalizationContext: $normalizationContext,
×
UNCOV
156
            denormalizationContext: $denormalizationContext,
×
UNCOV
157
            collectDenormalizationErrors: $collectDenormalizationErrors,
×
UNCOV
158
            security: $security,
×
UNCOV
159
            securityMessage: $securityMessage,
×
UNCOV
160
            securityPostDenormalize: $securityPostDenormalize,
×
UNCOV
161
            securityPostDenormalizeMessage: $securityPostDenormalizeMessage,
×
UNCOV
162
            securityPostValidation: $securityPostValidation,
×
UNCOV
163
            securityPostValidationMessage: $securityPostValidationMessage,
×
UNCOV
164
            deprecationReason: $deprecationReason,
×
UNCOV
165
            filters: $filters,
×
UNCOV
166
            validationContext: $validationContext,
×
UNCOV
167
            input: $input,
×
UNCOV
168
            output: $output,
×
UNCOV
169
            mercure: $mercure,
×
UNCOV
170
            messenger: $messenger,
×
UNCOV
171
            urlGenerationStrategy: $urlGenerationStrategy,
×
UNCOV
172
            read: $read,
×
UNCOV
173
            deserialize: $deserialize,
×
UNCOV
174
            validate: $validate,
×
UNCOV
175
            write: $write,
×
UNCOV
176
            serialize: $serialize,
×
UNCOV
177
            fetchPartial: $fetchPartial,
×
UNCOV
178
            forceEager: $forceEager,
×
UNCOV
179
            priority: $priority,
×
UNCOV
180
            name: $name,
×
UNCOV
181
            provider: $provider,
×
UNCOV
182
            processor: $processor,
×
UNCOV
183
            stateOptions: $stateOptions,
×
UNCOV
184
            extraProperties: $extraProperties,
×
UNCOV
185
        );
×
186
    }
187
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc