MockNotFoundException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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