Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ArrayRule | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
name | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
mustApplyRuleOnAttribute | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
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 | public function name(): string |
12 | { |
13 | return self::NAME; |
14 | } |
15 | |
16 | protected function mustApplyRuleOnAttribute(): bool |
17 | { |
18 | return $this->getAttribute()->isArray(); |
19 | } |
20 | } |