__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace DependencyAnalyzer\Exceptions;
5
6
use Fhaculty\Graph\Edge\Directed;
7
8
class InvalidEdgeOnDependencyGraphException extends RuntimeException
9
{
10
    /**
11
     * @var Directed
12
     */
13
    private $edge;
14
15
    public function __construct(Directed $edge, $message = '', $code = 0, \Throwable $previous = null)
16
    {
17
        parent::__construct($message, $code, $previous);
18
        $this->edge = $edge;
19
    }
20
}
21