QueryMetadata::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 4
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\Metadata;
6
7
final class QueryMetadata
8
{
9
    private $name;
10
    private $selects;
11
    private $joins;
12
    private $criteria;
13
14
    public function __construct(
15
        string $name,
16
        array $selects = [],
17
        array $joins = [],
18
        array $criteria = []
19
    ) {
20
        $this->name = $name;
21
        $this->selects = $selects;
22
        $this->joins = $joins;
23
        $this->criteria = $criteria;
24
    }
25
26
    public function getName()
27
    {
28
        return $this->name;
29
    }
30
31
    public function getSelects(): array
32
    {
33
        return $this->selects;
34
    }
35
36
    public function getJoins(): array
37
    {
38
        return $this->joins;
39
    }
40
41
    public function getCriteria(): array
42
    {
43
        return $this->criteria;
44
    }
45
}
46