ValidateItemsError   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Type\Definition;
6
7
use Exception;
8
9
class ValidateItemsError extends Exception
10
{
11
    /** @var int[] */
12
    public $path;
13
14
    /** @var mixed */
15
    public $error;
16
17
    /**
18
     * ValidateItemsError constructor.
19
     * @param int[] $path
20
     * @param mixed $error
21
     */
22 4
    public function __construct(array $path, $error)
23
    {
24 4
        parent::__construct();
25 4
        $this->path  = $path;
26 4
        $this->error = $error;
27 4
    }
28
}
29