Passed
Push — master ( 0b74cf...f6aee1 )
by Christopher
01:37
created

xsNegativeInteger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Barnso
5
 * Date: 4/07/2017
6
 * Time: 12:55 AM
7
 */
8
9
namespace AlgoWeb\xsdTypes;
10
11
/**
12
 * The type xsd:negativeInteger represents an arbitrarily large negative integer. An xsd:negativeInteger is a
13
 * sequence of digits, preceded by a - sign. Leading zeros are permitted, but decimal points are not.
14
 * @package AlgoWeb\xsdTypes
15
 */
16
class xsNegativeInteger extends xsNonPositiveInteger
17
{
18
    /**
19
     * Construct
20
     *
21
     * @param mixed $value
22
     */
23
    public function __construct($value)
24
    {
25
        parent::__construct($value);
26
        $this->setMaxInclusive(-1);
27
    }
28
}