Passed
Push — master ( 311846...856668 )
by Christopher
02:44 queued 58s
created

xsPositiveInteger   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
c 0
b 0
f 0
rs 10

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