Completed
Push — master ( 9e4cdb...1641ea )
by Alexandr
02:44
created

DatableResolveException::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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