EscapableException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOriginal() 0 4 1
A __construct() 0 5 1
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of the pinepain/js-sandbox PHP library.
5
 *
6
 * Copyright (c) 2016-2017 Bogdan Padalko <[email protected]>
7
 *
8
 * Licensed under the MIT license: http://opensource.org/licenses/MIT
9
 *
10
 * For the full copyright and license information, please view the
11
 * LICENSE file that was distributed with this source or visit
12
 * http://opensource.org/licenses/MIT
13
 */
14
15
16
namespace Pinepain\JsSandbox\Exceptions;
17
18
19
use Throwable;
20
21
22
class EscapableException extends Exception
23
{
24
    /**
25
     * @var Throwable
26
     */
27
    private $original;
28
29
30
    public function __construct(Throwable $original)
31
    {
32
        parent::__construct();
33
        $this->original = $original;
34
    }
35
36
    /**
37
     * @return Throwable
38
     */
39
    public function getOriginal(): Throwable
40
    {
41
        return $this->original;
42
    }
43
}
44