FlowTerminationException::getIdentifier()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 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