ResponseFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
1
<?php
2
3
namespace Nip\Http\Response;
4
5
use Psr\Http\Message\ResponseInterface;
6
7
/**
8
 * Class ResponseFactory
9
 * @package Nip\Http\Response
10
 *
11
 * @inspiration https://github.com/laravel/framework/blob/master/src/Illuminate/Routing/ResponseFactory.php
12
 *
13
 */
14
class ResponseFactory
15
{
16
    /**
17
     * @param string $content
18
     * @param int $status
19
     * @param array $headers
20
     * @return ResponseInterface
21
     */
22
    public static function make($content = '', $status = 200, array $headers = [])
23
    {
24
        return new Response($content, $status, $headers);
25
    }
26
}
27