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

api-platform / core / 11182119487

04 Oct 2024 02:50PM UTC coverage: 7.837% (+0.4%) from 7.441%
11182119487

push

github

soyuka
Merge 4.0

0 of 266 new or added lines in 25 files covered. (0.0%)

9900 existing lines in 360 files now uncovered.

12939 of 165109 relevant lines covered (7.84%)

27.02 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
        ?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
        ?bool $elasticsearch = null,
97
        ?int $urlGenerationStrategy = null,
98
        ?bool $read = false,
99
        ?bool $deserialize = null,
100
        ?bool $validate = null,
101
        ?bool $write = null,
102
        ?bool $serialize = null,
103
        ?bool $fetchPartial = null,
104
        ?bool $forceEager = null,
105
        ?int $priority = null,
106
        ?string $name = null,
107
        $provider = null,
108
        $processor = null,
109
        array $extraProperties = [],
110
        ?OptionsInterface $stateOptions = null,
111
    ) {
UNCOV
112
        parent::__construct(
23✔
UNCOV
113
            method: $method,
23✔
UNCOV
114
            uriTemplate: $uriTemplate,
23✔
UNCOV
115
            types: $types,
23✔
UNCOV
116
            formats: $formats,
23✔
UNCOV
117
            inputFormats: $inputFormats,
23✔
UNCOV
118
            outputFormats: $outputFormats,
23✔
UNCOV
119
            uriVariables: $uriVariables,
23✔
UNCOV
120
            routePrefix: $routePrefix,
23✔
UNCOV
121
            routeName: $routeName,
23✔
UNCOV
122
            defaults: $defaults,
23✔
UNCOV
123
            requirements: $requirements,
23✔
UNCOV
124
            options: $options,
23✔
UNCOV
125
            stateless: $stateless,
23✔
UNCOV
126
            sunset: $sunset,
23✔
UNCOV
127
            acceptPatch: $acceptPatch,
23✔
UNCOV
128
            status: $status,
23✔
UNCOV
129
            host: $host,
23✔
UNCOV
130
            schemes: $schemes,
23✔
UNCOV
131
            condition: $condition,
23✔
UNCOV
132
            controller: $controller,
23✔
UNCOV
133
            headers: $headers,
23✔
UNCOV
134
            cacheHeaders: $cacheHeaders,
23✔
UNCOV
135
            paginationViaCursor: $paginationViaCursor,
23✔
UNCOV
136
            hydraContext: $hydraContext,
23✔
UNCOV
137
            openapi: $openapi,
23✔
UNCOV
138
            exceptionToStatus: $exceptionToStatus,
23✔
UNCOV
139
            queryParameterValidationEnabled: $queryParameterValidationEnabled,
23✔
UNCOV
140
            links: $links,
23✔
UNCOV
141
            errors: $errors,
23✔
UNCOV
142
            shortName: $shortName,
23✔
UNCOV
143
            class: $class,
23✔
UNCOV
144
            paginationEnabled: $paginationEnabled,
23✔
UNCOV
145
            paginationType: $paginationType,
23✔
UNCOV
146
            paginationItemsPerPage: $paginationItemsPerPage,
23✔
UNCOV
147
            paginationMaximumItemsPerPage: $paginationMaximumItemsPerPage,
23✔
UNCOV
148
            paginationPartial: $paginationPartial,
23✔
UNCOV
149
            paginationClientEnabled: $paginationClientEnabled,
23✔
UNCOV
150
            paginationClientItemsPerPage: $paginationClientItemsPerPage,
23✔
UNCOV
151
            paginationClientPartial: $paginationClientPartial,
23✔
UNCOV
152
            paginationFetchJoinCollection: $paginationFetchJoinCollection,
23✔
UNCOV
153
            paginationUseOutputWalkers: $paginationUseOutputWalkers,
23✔
UNCOV
154
            order: $order,
23✔
UNCOV
155
            description: $description,
23✔
UNCOV
156
            normalizationContext: $normalizationContext,
23✔
UNCOV
157
            denormalizationContext: $denormalizationContext,
23✔
UNCOV
158
            collectDenormalizationErrors: $collectDenormalizationErrors,
23✔
UNCOV
159
            security: $security,
23✔
UNCOV
160
            securityMessage: $securityMessage,
23✔
UNCOV
161
            securityPostDenormalize: $securityPostDenormalize,
23✔
UNCOV
162
            securityPostDenormalizeMessage: $securityPostDenormalizeMessage,
23✔
UNCOV
163
            securityPostValidation: $securityPostValidation,
23✔
UNCOV
164
            securityPostValidationMessage: $securityPostValidationMessage,
23✔
UNCOV
165
            deprecationReason: $deprecationReason,
23✔
UNCOV
166
            filters: $filters,
23✔
UNCOV
167
            validationContext: $validationContext,
23✔
UNCOV
168
            input: $input,
23✔
UNCOV
169
            output: $output,
23✔
UNCOV
170
            mercure: $mercure,
23✔
UNCOV
171
            messenger: $messenger,
23✔
UNCOV
172
            elasticsearch: $elasticsearch,
23✔
UNCOV
173
            urlGenerationStrategy: $urlGenerationStrategy,
23✔
UNCOV
174
            read: $read,
23✔
UNCOV
175
            deserialize: $deserialize,
23✔
UNCOV
176
            validate: $validate,
23✔
UNCOV
177
            write: $write,
23✔
UNCOV
178
            serialize: $serialize,
23✔
UNCOV
179
            fetchPartial: $fetchPartial,
23✔
UNCOV
180
            forceEager: $forceEager,
23✔
UNCOV
181
            priority: $priority,
23✔
UNCOV
182
            name: $name,
23✔
UNCOV
183
            provider: $provider,
23✔
UNCOV
184
            processor: $processor,
23✔
UNCOV
185
            stateOptions: $stateOptions,
23✔
UNCOV
186
            extraProperties: $extraProperties,
23✔
UNCOV
187
        );
23✔
188
    }
189
}
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