FlowTerminationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getIdentifier() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SlayerBirden\DataFlow\Exception;
5
6
use Throwable;
7
8
class FlowTerminationException extends \OutOfBoundsException implements DomainExceptionInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    private $identifier;
14
15 2
    public function __construct(
16
        string $message = "",
17
        string $identifier = '',
18
        int $code = 0,
19
        Throwable $previous = null
20
    ) {
21 2
        parent::__construct($message, $code, $previous);
22 2
        $this->identifier = $identifier;
23 2
    }
24
25
    /**
26
     * @return string
27
     */
28 2
    public function getIdentifier(): string
29
    {
30 2
        return $this->identifier;
31
    }
32
}
33