Get   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace LE_ACME2\Response\Order;
4
5
use LE_ACME2\Connector\RawResponse;
6
use LE_ACME2\Exception;
7
8
class Get extends AbstractOrder {
9
10
    /**
11
     * Get constructor.
12
     *
13
     * @throws Exception\InvalidResponse
14
     * @throws Exception\RateLimitReached
15
     * @throws Exception\ServiceUnavailable
16
     */
17
    public function __construct(RawResponse $raw, string $orderURL) {
18
19
        // Dirty fix: Header of response "Get" does not contain an order url, instead of response "Create"
20
        // Is needed on production server, not on staging server - tested: 12.04.2021
21
        $raw->header[] = 'Location: ' . $orderURL;
22
23
        parent::__construct($raw);
24
    }
25
}