RawResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createDummyFrom() 0 7 1
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
}