GlobalContext::getDataReader()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\DataView\Column\Base;
6
7
use Yiisoft\Data\Reader\ReadableDataInterface;
8
9
final class GlobalContext
10
{
11 84
    public function __construct(
12
        private ReadableDataInterface $dataReader,
13
        private array $sortLinkAttributes,
14
        private array $urlArguments = [],
15
        private array $urlQueryParameters = [],
16
        private ?string $filterModelName = null,
17
    ) {
18 84
    }
19
20 67
    public function getDataReader(): ReadableDataInterface
21
    {
22 67
        return $this->dataReader;
23
    }
24
25 3
    public function getSortLinkAttributes(): array
26
    {
27 3
        return $this->sortLinkAttributes;
28
    }
29
30 3
    public function getUrlArguments(): array
31
    {
32 3
        return $this->urlArguments;
33
    }
34
35 3
    public function getUrlQueryParameters(): array
36
    {
37 3
        return $this->urlQueryParameters;
38
    }
39
40 17
    public function getFilterModelName(): ?string
41
    {
42 17
        return $this->filterModelName;
43
    }
44
}
45