FetchProductConfig::getMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Bpost\BpostApiClient\Bpost\HttpRequestBuilder;
5
6
use Bpost\BpostApiClient\Common\ApiVersions;
7
8
class FetchProductConfig implements HttpRequestBuilderInterface
9
{
10
    public function getXml(): ?string
11
    {
12
        return null;
13
    }
14
15
16
    public function getHeaders(): array
17
    {
18
        return [
19
            'Accept: application/vnd.bpost.shm-productConfiguration-' . ApiVersions::V3_1 . '+XML',
20
        ];
21
    }
22
23
    public function getUrl(): string
24
    {
25
        return '/productconfig';
26
    }
27
28
    public function isExpectXml(): bool
29
    {
30
        return true;
31
    }
32
33
    public function getMethod(): string
34
    {
35
        return self::METHOD_GET;
36
    }
37
}
38