Completed
Push — feature/issue-168 ( f01c3b...77e7a9 )
by Mikaël
23:44
created

MinExclusiveRule::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace WsdlToPhp\PackageGenerator\File\Validation;
4
5
/**
6
 * Class MinExclusiveRule
7
 * @link https://www.w3.org/TR/xmlschema-2/#rf-minExclusive
8
 * @link https://www.w3.org/TR/xmlschema-2/#d0e11648 for Examples:
9
 *  dateTime	            duration	        result
10
 *  2000-01-12T12:13:14Z	P1Y3M5DT7H10M3.3S	2001-04-17T19:23:17.3Z
11
 *  2000-01	                -P3M                1999-10
12
 *  2000-01-12	            PT33H	            2000-01-13
13
 * Validation Rule: minExclusive Valid
14
 * A value in an ·ordered· ·value space· is facet-valid with respect to ·minExclusive· if:
15
 *  - 1 if the ·numeric· property in {fundamental facets} is true, then the value ·must· be numerically greater than {value};
16
 *  - 2 if the ·numeric· property in {fundamental facets} is false (i.e., {base type definition} is one of the date and time related datatypes), then the value ·must· be chronologically greater than {value};
17
 */
18
class MinExclusiveRule extends AbstractBoundRule
19
{
20
21
    /**
22
     * @return string
23
     */
24 42
    public function name()
25
    {
26 42
        return 'minExclusive';
27
    }
28
29
    /**
30
     * @return string
31
     */
32 42
    public static function symbol()
33
    {
34 42
        return self::SYMBOL_MIN_EXCLUSIVE;
35
    }
36
}
37