Completed
Pull Request — master (#11)
by Davidson
02:50
created

RestrictionException::getVerifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace GoetasWebservices\XML\XSDReader\Exception;
3
4
class RestrictionException extends \Exception
5
{
6
    const ERROR_CODE_ENUMARATION = 1;
7
    const ERROR_CODE_PATTERN = 2;
8
    const ERROR_CODE_MIN_EXCLUSIVE = 3;
9
    const ERROR_CODE_MIN_INCLUSIVE = 4;
10
    const ERROR_CODE_MAX_EXCLUSIVE = 5;
11
    const ERROR_CODE_MAX_INCLUSIVE = 6;
12
    const ERROR_CODE_TOTAL_DIGITS = 7;
13
    const ERROR_CODE_FRACTION_DIGITS = 8;
14
    const ERROR_CODE_LENGTH = 9;
15
    const ERROR_CODE_MIN_LENGTH = 10;
16
    const ERROR_CODE_MAX_LENGTH = 11;
17
    const ERROR_CODE_VALUE = 12;
18
    const ERROR_CODE_GTE = 13;
19
    
20
    protected $value;
21
    protected $verifier;    
22
    
23 33
    public function __construct($message = "", $code = 0, $value = "", $verifier = "", \Exception $previous = null) {
24 33
        $this->value = $value;
25 33
        $this->verifier = $verifier;
26 33
        parent::__construct($message, $code, $previous);
27 33
    }
28
    
29
    public function getValue() 
30
    {
31
        return $this->value;
32
    }
33
    
34
    public function getVerifier() 
35
    {
36
        return $this->verifier;
37
    }
38
    
39
}