Passed
Push — develop ( 6893c7...3ccee5 )
by Mikaël
50:50 queued 35:13
created

MinOccursRule::name()   A

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
namespace WsdlToPhp\PackageGenerator\File\Validation;
4
5
/**
6
 * Class MinOccursRule
7
 * @link https://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#p-min_occurs
8
 * 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.
9
 * Checking the minimum occurrences count would be meaningful just before the request which is done currently.
10
 */
11
class MinOccursRule extends AbstractMinMaxRule
12
{
13
    /**
14
     * @return string
15
     */
16
    public function name()
17
    {
18
        return 'minOccurs';
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function symbol()
25
    {
26
        return '';
27
    }
28
29
    /**
30
     * @param string $parameterName
31
     * @param mixed $value
32
     * @param bool $itemType
33
     * @return string
34
     */
35 234
    final public function testConditions($parameterName, $value, $itemType = false)
36
    {
37 234
        return '';
38
    }
39
40
    /**
41
     * @param string $parameterName
42
     * @param mixed $value
43
     * @param bool $itemType
44
     * @return string
45
     */
46
    final public function exceptionMessageOnTestFailure($parameterName, $value, $itemType = false)
47
    {
48
        return '';
49
    }
50
}
51