QueryConfig   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 37
ccs 11
cts 11
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getQuery() 0 3 1
A getTypes() 0 3 1
A getParameters() 0 3 1
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