QueryConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\Cleaner\DB\Config;
6
7
class QueryConfig
8
{
9
    /**
10
     * @var string
11
     */
12
    private $query;
13
14
    /**
15
     * @var array
16
     */
17
    private $parameters;
18
19
    /**
20
     * @var array
21
     */
22
    private $types;
23
24 9
    public function __construct(string $query, array $parameters = [], array $types = [])
25
    {
26 9
        $this->query = $query;
27 9
        $this->parameters = $parameters;
28 9
        $this->types = $types;
29 9
    }
30
31 9
    public function getQuery(): string
32
    {
33 9
        return $this->query;
34
    }
35
36 9
    public function getParameters(): array
37
    {
38 9
        return $this->parameters;
39
    }
40
41 9
    public function getTypes(): array
42
    {
43 9
        return $this->types;
44
    }
45
}
46