ChainOperationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getChainOperationName() 0 3 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
}