ProdVndErrorPageFactory::newInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package\Provide\Error;
6
7
use BEAR\Sunday\Extension\Router\RouterMatch;
8
use Override;
9
use Throwable;
10
11
final class ProdVndErrorPageFactory implements ErrorPageFactoryInterface
12
{
13
    #[Override]
14
    public function newInstance(Throwable $e, RouterMatch $request): ProdVndErrorPage
15
    {
16
        return new ProdVndErrorPage($e, $request);
17
    }
18
}
19