Completed
Push — master ( 3a8348...8484c4 )
by Portey
07:24
created

DatableResolveException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4286
cc 1
eloc 3
nc 1
nop 3
crap 2
1
<?php
2
/**
3
 * Date: 22.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Validator\Exception;
9
10
11
use Exception;
12
13
class DatableResolveException extends \Exception
14
{
15
16
    /** @var  array */
17
    protected $data;
18
19
    public function __construct($message, $code = 0, $data = [])
20
    {
21
        parent::__construct($message, $code);
22
23
        $this->setData($data);
24
    }
25
26
    /**
27
     * @return array
28
     */
29
    public function getData()
30
    {
31
        return $this->data;
32
    }
33
34
    /**
35
     * @param array $data
36
     */
37
    public function setData($data)
38
    {
39
        $this->data = $data;
40
    }
41
42
}