Total Complexity | 4 |
Total Lines | 84 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class GraphQLException extends AbstractException |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $locations; |
||
21 | |||
22 | /** |
||
23 | * @var string[] |
||
24 | */ |
||
25 | protected $path; |
||
26 | |||
27 | /** |
||
28 | * @var NodeInterface[] |
||
29 | */ |
||
30 | protected $nodes; |
||
31 | |||
32 | /** |
||
33 | * @var Source|null |
||
34 | */ |
||
35 | protected $source; |
||
36 | |||
37 | /** |
||
38 | * @var int[] |
||
39 | */ |
||
40 | protected $positions; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $extensions; |
||
46 | |||
47 | /** |
||
48 | * ExecutionException constructor. |
||
49 | * |
||
50 | * @param string $message |
||
51 | * @param array|null $nodes |
||
52 | * @param Source|null $source |
||
53 | * @param array|null $positions |
||
54 | * @param array|null $path |
||
55 | * @param array|null $extensions |
||
56 | */ |
||
57 | public function __construct( |
||
58 | string $message, |
||
59 | ?array $nodes = null, |
||
60 | ?Source $source = null, |
||
61 | ?array $positions = null, |
||
62 | ?array $path = null, |
||
63 | ?array $extensions = null |
||
64 | ) { |
||
65 | parent::__construct($message); |
||
66 | |||
67 | $this->nodes = $nodes; |
||
68 | $this->source = $source; |
||
69 | $this->positions = $positions; |
||
70 | $this->path = $path; |
||
71 | $this->extensions = $extensions; |
||
72 | } |
||
73 | |||
74 | // TODO: Implement the rest of this class. |
||
75 | |||
76 | /** |
||
77 | * @return array|null |
||
78 | */ |
||
79 | public function getLocations(): ?array |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * @return array|null |
||
86 | */ |
||
87 | public function getPath(): ?array |
||
88 | { |
||
89 | return $this->path; |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * @return array|null |
||
94 | */ |
||
95 | public function getExtensions(): ?array |
||
98 | } |
||
99 | } |
||
100 |