ArrayRule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A mustApplyRuleOnAttribute() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WsdlToPhp\PackageGenerator\File\Validation;
6
7
final class ArrayRule extends AbstractSetOfValuesRule
8
{
9
    public const NAME = 'array';
10
11 60
    public function name(): string
12
    {
13 60
        return self::NAME;
14
    }
15
16 60
    protected function mustApplyRuleOnAttribute(): bool
17
    {
18 60
        return $this->getAttribute()->isArray();
19
    }
20
}
21