Passed
Push — master ( bccc8d...7975f9 )
by Christopher
02:04
created

xsNonNegativeInteger   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: 1:03 AM
7
 */
8
9
namespace AlgoWeb\xsdTypes;
10
11
/**
12
 * The type xsd:nonNegativeInteger represents an arbitrarily large non-negative integer. An xsd:nonNegativeInteger is
13
 * a sequence of digits, optionally preceded by a + sign. Leading zeros are permitted, but decimal points are not.
14
 * @package AlgoWeb\xsdTypes
15
 */
16
class xsNonNegativeInteger extends xsInteger
17
{
18
    /**
19
     * Construct
20
     *
21
     * @param int $value
22
     */
23
    public function __construct($value)
24
    {
25
        parent::__construct($value);
26
        $this->setMinInclusive(0);
27
    }
28
}