MinOccursRule::name()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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