Passed
Push — master ( f85738...3d85c1 )
by Peter
04:52
created

ResponseFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Psr7;
6
7
use Nyholm\Psr7\Response;
8
use Opulence\Http\Responses\ResponseHeaders;
9
use Psr\Http\Message\ResponseInterface;
10
11
class ResponseFactory
12
{
13
    /**
14
     * @return ResponseInterface
15
     */
16
    public function create(): ResponseInterface
17
    {
18
        return new Response(ResponseHeaders::HTTP_INTERNAL_SERVER_ERROR);
19
    }
20
}
21