ChainOperationException::getChainOperationName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
ccs 1
cts 1
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Oliverde8\Component\PhpEtl\Exception;
6
7
use Throwable;
8
9
/**
10
 * Class ChainException
11
 *
12
 * @author    de Cramer Oliver<[email protected]>
13
 * @copyright 2018 Oliverde8
14
 * @package Oliverde8\Component\PhpEtl
15
 */
16
class ChainOperationException extends \Exception
17
{
18
    /** @var string */
19
    protected string $chainOperationName;
20
21
    /**
22
     * ChainOperationException constructor.
23
     */
24
    public function __construct(string $message = "", int $code = 0, \Exception $previous = null, string $chainOperationName = '')
25
    {
26 1
        $this->chainOperationName = $chainOperationName;
27
28 1
        parent::__construct($message, $code, $previous);
29
    }
30 1
31 1
    public function getChainOperationName(): string
32
    {
33
        return $this->chainOperationName;
34
    }
35
}