StreamResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 5
crap 1
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of indragunawan/rest-service package.
5
 *
6
 * (c) Indra Gunawan <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace IndraGunawan\RestService;
13
14
use GuzzleHttp\Psr7\Response as BaseResponse;
15
16
class StreamResult extends BaseResponse
17
{
18 1
    public function __construct(
19
        $status = 200,
20
        array $headers = [],
21
        $body = null,
22
        $version = '1.1',
23
        $reason = null
24
    ) {
25 1
        parent::__construct($status, $headers, $body, $version, $reason);
26 1
    }
27
}
28