MockNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Swis\Http\Fixture;
4
5
class MockNotFoundException extends \Exception
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $possiblePaths;
11
12
    /**
13
     * @param string          $message
14
     * @param array           $possiblePaths
15
     * @param int             $code
16
     * @param \Throwable|null $previous
17
     */
18 72
    public function __construct(string $message = '', array $possiblePaths = [], int $code = 0, ?\Throwable $previous = null)
19
    {
20 72
        $this->possiblePaths = $possiblePaths;
21
22 72
        parent::__construct($message, $code, $previous);
23 12
    }
24
25
    /**
26
     * @return array
27
     */
28 6
    public function getPossiblePaths(): array
29
    {
30 6
        return $this->possiblePaths;
31
    }
32
}
33