RawResponse::createDummyFrom()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 7
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
namespace LE_ACME2Tests\Connector;
3
4
class RawResponse extends \LE_ACME2\Connector\RawResponse {
5
6
    const HEADER_200 = 'HTTP/1.1 200 OK';
7
8
    public static function createDummyFrom(string $header, string $response): \LE_ACME2\Connector\RawResponse {
9
10
        return \LE_ACME2\Connector\RawResponse::createFrom(
11
            'UNKOWN',
12
            'http://dummy.org',
13
            $header . $response,
14
            strlen($header)
15
        );
16
    }
17
}