Completed
Push — master ( d52ee7...e7842c )
by Alexandr
03:54
created

DatableResolveException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 3
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 30
rs 10
ccs 9
cts 9
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 4 1
A setData() 0 4 1
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
class DatableResolveException extends \Exception
11
{
12
13
    /** @var  array */
14
    protected $data;
15
16 1
    public function __construct($message, $code = 0, $data = [])
17
    {
18 1
        parent::__construct($message, $code);
19
20 1
        $this->setData($data);
21 1
    }
22
23
    /**
24
     * @return array
25
     */
26 1
    public function getData()
27
    {
28 1
        return $this->data;
29
    }
30
31
    /**
32
     * @param array $data
33
     */
34 1
    public function setData($data)
35
    {
36 1
        $this->data = $data;
37 1
    }
38
39
}