Completed
Pull Request — master (#13)
by Jhao
03:24
created

DispatchingClient::orders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of RussianPost SDK package.
5
 *
6
 * © Appwilio (http://appwilio.com), JhaoDa (https://github.com/jhaoda)
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Appwilio\RussianPostSDK\Dispatching;
15
16
use Appwilio\RussianPostSDK\Dispatching\Http\ApiClient;
17
use Appwilio\RussianPostSDK\Dispatching\Http\Authorization;
18
use Appwilio\RussianPostSDK\Dispatching\Endpoints\Services\Services;
19
use Appwilio\RussianPostSDK\Dispatching\Endpoints\Settings\Settings;
20
use Appwilio\RussianPostSDK\Dispatching\Endpoints\Documents\Documents;
21
22
final class DispatchingClient
23
{
24
    /** @var ApiClient */
25
    private $client;
26
27
    public function __construct(string $login, string $password, string $token, array $httpOptions = [])
28
    {
29
        $this->client = new ApiClient(new Authorization($login, $password, $token), $httpOptions);
30
    }
31
32
    public function orders()
33
    {
34
35
    }
36
37
    public function batches()
38
    {
39
        //
40
    }
41
42
    public function documents(): Documents
43
    {
44
        return new Documents($this->client);
45
    }
46
47
    public function archive()
48
    {
49
        //
50
    }
51
52
    public function postoffices()
53
    {
54
        
55
    }
56
57
    public function services(): Services
58
    {
59
        return new Services($this->client);
60
    }
61
62
    public function settings()
63
    {
64
        return new Settings($this->client);
65
    }
66
}
67