Parameters::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 4
crap 2
1
<?php
2
3
namespace Phrest\Swagger;
4
5
6
class Parameters
7
{
8
    private $bodyParameter;
9
    private $queryParameters;
10
    private $headerParameters;
11
    private $pathParameters;
12
13
    public function __construct(array $bodyParameter, array $queryParameters, array $headerParameters, array $pathParameters)
14
    {
15
        $this->bodyParameter = $bodyParameter;
16
        $this->queryParameters = $queryParameters;
17
        $this->headerParameters = $headerParameters;
18
        $this->pathParameters = $pathParameters;
19
    }
20
21
    public function getBodyParameter(): array
22
    {
23
        return $this->bodyParameter;
24
    }
25
26
    public function getQueryParameters(): array
27
    {
28
        return $this->queryParameters;
29
    }
30
31
    public function getHeaderParameters(): array
32
    {
33
        return $this->headerParameters;
34
    }
35
36
    public function getPathParameters(): array
37
    {
38
        return $this->pathParameters;
39
    }
40
}