ValidatorConfig::getRequiredAIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\GS1Parser\Validator;
6
7
final class ValidatorConfig
8
{
9
    private $requiredAIs = [];
10
    private $forbiddenAIs = [];
11
    private $allowEmpty = false;
12
13 2
    public function getRequiredAIs(): array
14
    {
15 2
        return $this->requiredAIs;
16
    }
17
18 1
    public function setRequiredAIs(array $requiredAIs): self
19
    {
20 1
        $this->requiredAIs = $requiredAIs;
21 1
        return $this;
22
    }
23
24 2
    public function getForbiddenAIs(): array
25
    {
26 2
        return $this->forbiddenAIs;
27
    }
28
29 1
    public function setForbiddenAIs(array $forbiddenAIs): self
30
    {
31 1
        $this->forbiddenAIs = $forbiddenAIs;
32 1
        return $this;
33
    }
34
35 2
    public function isAllowEmpty(): bool
36
    {
37 2
        return $this->allowEmpty;
38
    }
39
40 1
    public function setAllowEmpty(bool $allowEmpty): self
41
    {
42 1
        $this->allowEmpty = $allowEmpty;
43 1
        return $this;
44
    }
45
}