Passed
Pull Request — master (#59)
by
unknown
25:11 queued 09:41
created

HttpNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getRequest() 0 3 1
1
<?php
2
3
namespace App\LazyRendering\Http;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
use Throwable;
7
8
final class HttpNotFoundException extends \Exception
9
{
10
    private ServerRequestInterface $request;
11
12
    public function __construct(ServerRequestInterface $request, $message = "", $code = 0, Throwable $previous = null)
13
    {
14
        parent::__construct(
15
            $message,
16
            $code,
17
            $previous
18
        );
19
        $this->request = $request;
20
    }
21
22
    public function getRequest(): ServerRequestInterface
23
    {
24
        return $this->request;
25
    }
26
}
27