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

api-platform / core / 10729306835

05 Sep 2024 10:46PM UTC coverage: 7.655% (-0.01%) from 7.665%
10729306835

push

github

web-flow
Merge pull request #6586 from soyuka/merge-342

Merge 3.4

0 of 54 new or added lines in 12 files covered. (0.0%)

8760 existing lines in 277 files now uncovered.

12505 of 163357 relevant lines covered (7.66%)

22.84 hits per line

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

100.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

65
        ?string $shortName = null,
66
        ?string $class = null,
67
        ?bool $paginationEnabled = null,
68
        ?string $paginationType = null,
69
        ?int $paginationItemsPerPage = null,
70
        ?int $paginationMaximumItemsPerPage = null,
71
        ?bool $paginationPartial = null,
72
        ?bool $paginationClientEnabled = null,
73
        ?bool $paginationClientItemsPerPage = null,
74
        ?bool $paginationClientPartial = null,
75
        ?bool $paginationFetchJoinCollection = null,
76
        ?bool $paginationUseOutputWalkers = null,
77
        ?array $order = null,
78
        ?string $description = null,
79
        ?array $normalizationContext = null,
80
        ?array $denormalizationContext = null,
81
        ?bool $collectDenormalizationErrors = null,
82
        string|\Stringable|null $security = null,
83
        ?string $securityMessage = null,
84
        string|\Stringable|null $securityPostDenormalize = null,
85
        ?string $securityPostDenormalizeMessage = null,
86
        string|\Stringable|null $securityPostValidation = null,
87
        ?string $securityPostValidationMessage = null,
88
        ?string $deprecationReason = null,
89
        ?array $filters = null,
90
        ?array $validationContext = null,
91
        $input = null,
92
        $output = false,
93
        $mercure = null,
94
        $messenger = null,
95
        ?bool $elasticsearch = 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(
8✔
UNCOV
112
            method: $method,
8✔
UNCOV
113
            uriTemplate: $uriTemplate,
8✔
UNCOV
114
            types: $types,
8✔
UNCOV
115
            formats: $formats,
8✔
UNCOV
116
            inputFormats: $inputFormats,
8✔
UNCOV
117
            outputFormats: $outputFormats,
8✔
UNCOV
118
            uriVariables: $uriVariables,
8✔
UNCOV
119
            routePrefix: $routePrefix,
8✔
UNCOV
120
            routeName: $routeName,
8✔
UNCOV
121
            defaults: $defaults,
8✔
UNCOV
122
            requirements: $requirements,
8✔
UNCOV
123
            options: $options,
8✔
UNCOV
124
            stateless: $stateless,
8✔
UNCOV
125
            sunset: $sunset,
8✔
UNCOV
126
            acceptPatch: $acceptPatch,
8✔
UNCOV
127
            status: $status,
8✔
UNCOV
128
            host: $host,
8✔
UNCOV
129
            schemes: $schemes,
8✔
UNCOV
130
            condition: $condition,
8✔
UNCOV
131
            controller: $controller,
8✔
UNCOV
132
            headers: $headers,
8✔
UNCOV
133
            cacheHeaders: $cacheHeaders,
8✔
UNCOV
134
            paginationViaCursor: $paginationViaCursor,
8✔
UNCOV
135
            hydraContext: $hydraContext,
8✔
UNCOV
136
            openapi: $openapi,
8✔
UNCOV
137
            exceptionToStatus: $exceptionToStatus,
8✔
UNCOV
138
            queryParameterValidationEnabled: $queryParameterValidationEnabled,
8✔
UNCOV
139
            links: $links,
8✔
UNCOV
140
            shortName: $shortName,
8✔
UNCOV
141
            class: $class,
8✔
UNCOV
142
            paginationEnabled: $paginationEnabled,
8✔
UNCOV
143
            paginationType: $paginationType,
8✔
UNCOV
144
            paginationItemsPerPage: $paginationItemsPerPage,
8✔
UNCOV
145
            paginationMaximumItemsPerPage: $paginationMaximumItemsPerPage,
8✔
UNCOV
146
            paginationPartial: $paginationPartial,
8✔
UNCOV
147
            paginationClientEnabled: $paginationClientEnabled,
8✔
UNCOV
148
            paginationClientItemsPerPage: $paginationClientItemsPerPage,
8✔
UNCOV
149
            paginationClientPartial: $paginationClientPartial,
8✔
UNCOV
150
            paginationFetchJoinCollection: $paginationFetchJoinCollection,
8✔
UNCOV
151
            paginationUseOutputWalkers: $paginationUseOutputWalkers,
8✔
UNCOV
152
            order: $order,
8✔
UNCOV
153
            description: $description,
8✔
UNCOV
154
            normalizationContext: $normalizationContext,
8✔
UNCOV
155
            denormalizationContext: $denormalizationContext,
8✔
UNCOV
156
            collectDenormalizationErrors: $collectDenormalizationErrors,
8✔
UNCOV
157
            security: $security,
8✔
UNCOV
158
            securityMessage: $securityMessage,
8✔
UNCOV
159
            securityPostDenormalize: $securityPostDenormalize,
8✔
UNCOV
160
            securityPostDenormalizeMessage: $securityPostDenormalizeMessage,
8✔
UNCOV
161
            securityPostValidation: $securityPostValidation,
8✔
UNCOV
162
            securityPostValidationMessage: $securityPostValidationMessage,
8✔
UNCOV
163
            deprecationReason: $deprecationReason,
8✔
UNCOV
164
            filters: $filters,
8✔
UNCOV
165
            validationContext: $validationContext,
8✔
UNCOV
166
            input: $input,
8✔
UNCOV
167
            output: $output,
8✔
UNCOV
168
            mercure: $mercure,
8✔
UNCOV
169
            messenger: $messenger,
8✔
UNCOV
170
            elasticsearch: $elasticsearch,
8✔
UNCOV
171
            urlGenerationStrategy: $urlGenerationStrategy,
8✔
UNCOV
172
            read: $read,
8✔
UNCOV
173
            deserialize: $deserialize,
8✔
UNCOV
174
            validate: $validate,
8✔
UNCOV
175
            write: $write,
8✔
UNCOV
176
            serialize: $serialize,
8✔
UNCOV
177
            fetchPartial: $fetchPartial,
8✔
UNCOV
178
            forceEager: $forceEager,
8✔
UNCOV
179
            priority: $priority,
8✔
UNCOV
180
            name: $name,
8✔
UNCOV
181
            provider: $provider,
8✔
UNCOV
182
            processor: $processor,
8✔
UNCOV
183
            stateOptions: $stateOptions,
8✔
UNCOV
184
            extraProperties: $extraProperties,
8✔
UNCOV
185
        );
8✔
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