MinOccursRule   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 25%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 20
ccs 2
cts 8
cp 0.25
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A exceptionMessageOnTestFailure() 0 3 1
A testConditions() 0 3 1
A symbol() 0 3 1
A name() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WsdlToPhp\PackageGenerator\File\Validation;
6
7
/**
8
 * @see https://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#p-min_occurs
9
 * This class is intended to show that this cas has not been forgotten. It simply isn't used as the minimum occurrences count can't be checked.
10
 * Checking the minimum occurrences count would be meaningful just before the request is sent which is not done currently.
11
 */
12
class MinOccursRule extends AbstractMinMaxRule
13
{
14
    public function name(): string
15
    {
16
        return 'minOccurs';
17
    }
18
19
    public function symbol(): string
20
    {
21
        return '';
22
    }
23
24 86
    final public function testConditions(string $parameterName, $value, bool $itemType = false): string
25
    {
26 86
        return '';
27
    }
28
29
    final public function exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false): string
30
    {
31
        return '';
32
    }
33
}
34