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

xsInt   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

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