DhlParcelClientAdapter::shipments()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Mvdnbrk\Laravel;
4
5
use Mvdnbrk\DhlParcel\Client;
6
7
class DhlParcelClientAdapter
8
{
9
    /**
10
     * @var \Mvdnbrk\DhlParcel\Client
11
     */
12
    protected $client;
13
14
    /**
15
     * Construct a new api adapter instance.
16
     *
17
     * @param  \Mvdnbrk\DhlParcel\Client  $client
18
     */
19 32
    public function __construct(Client $client)
20
    {
21 32
        $this->client = $client;
22 32
    }
23
24
    /**
25
     * @return string
26
     */
27 8
    public function getAccountId()
28
    {
29 8
        return $this->client->getAccountId();
30
    }
31
32
    /**
33
     * @param  string  $value
34
     * @return \Mvdnbrk\Laravel\DhlParcelClientAdapter
35
     */
36 4
    public function setAccountId(string $value)
37
    {
38 4
        $this->client->setAccountId($value);
39
40 4
        return $this;
41
    }
42
43
    /**
44
     * @param  string  $value
45
     * @return \Mvdnbrk\Laravel\DhlParcelClientAdapter
46
     */
47 4
    public function setApiKey(string $value)
48
    {
49 4
        $this->client->setApiKey($value);
50
51 4
        return $this;
52
    }
53
54
    /**
55
     * @param  string  $value
56
     * @return \Mvdnbrk\Laravel\DhlParcelClientAdapter
57
     */
58 4
    public function setUserId(string $value)
59
    {
60 4
        $this->client->setUserId($value);
61
62 4
        return $this;
63
    }
64
65
    /**
66
     * @return \Mvdnbrk\DhlParcel\Endpoints\Labels
67
     */
68 4
    public function labels()
69
    {
70 4
        return $this->client->labels;
71
    }
72
73
    /**
74
     * @return \Mvdnbrk\DhlParcel\Endpoints\Shipments
75
     */
76 4
    public function shipments()
77
    {
78 4
        return $this->client->shipments;
79
    }
80
81
    /**
82
     * @return \Mvdnbrk\DhlParcel\Endpoints\ServicePoints
83
     */
84 4
    public function servicePoints()
85
    {
86 4
        return $this->client->servicePoints;
87
    }
88
89
    /**
90
     * @return \Mvdnbrk\DhlParcel\Endpoints\TrackTrace
91
     */
92 4
    public function tracktrace()
93
    {
94 4
        return $this->client->tracktrace;
95
    }
96
}
97