Completed
Pull Request — master (#3407)
by Antoine
05:48
created

Components   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
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\Core\OpenApi;
15
16
class Components
17
{
18
    private $schemas;
19
    private $responses;
20
    private $parameters;
21
    private $examples;
22
    private $requestBodies;
23
    private $headers;
24
    private $securitySchemes;
25
    private $links;
26
    private $callbacks;
27
28
    public function __construct(array $schemas = [], array $responses = [], array $parameters = [], array $examples = [], array $requestBodies = [], array $headers = [], array $securitySchemes = [], array $links = [], array $callbacks = [])
29
    {
30
        $this->schemas = $schemas;
31
        $this->responses = $responses;
32
        $this->parameters = $parameters;
33
        $this->examples = $examples;
34
        $this->requestBodies = $requestBodies;
35
        $this->headers = $headers;
36
        $this->securitySchemes = $securitySchemes;
37
        $this->links = $links;
38
        $this->callbacks = $callbacks;
39
    }
40
}
41