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

ResponseFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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