Completed
Push — master ( 572d49...2b02b3 )
by Lukáš
02:07
created

GetSalesPosEquipmentInfo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 51
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelClass() 0 4 1
A getHttpMethod() 0 4 1
A getUri() 0 4 1
A getGuzzleOptions() 0 4 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Functions\SalesPosEquipment;
4
5
use Fousky\Component\iDoklad\Functions\iDokladAbstractFunction;
6
use Fousky\Component\iDoklad\Model\SalesPosEquipment\SalesPosEquipmentInfoModel;
7
8
/**
9
 * @see https://app.idoklad.cz/developer/Help/v2/cs/Api?apiId=GET-api-v2-SalesPosEquipment-Info
10
 *
11
 * @author Lukáš Brzák <[email protected]>
12
 */
13
class GetSalesPosEquipmentInfo extends iDokladAbstractFunction
14
{
15
    /**
16
     * Get iDokladModelInterface class.
17
     *
18
     * @see iDokladModelInterface
19
     *
20
     * @return string
21
     */
22
    public function getModelClass(): string
23
    {
24
        return SalesPosEquipmentInfoModel::class;
25
    }
26
27
    /**
28
     * GET|POST|PUT|DELETE e.g.
29
     *
30
     * @see iDoklad::request()
31
     *
32
     * @return string
33
     */
34
    public function getHttpMethod(): string
35
    {
36
        return 'GET';
37
    }
38
39
    /**
40
     * Return base URI, e.g. /invoices; /invoice/1/edit and so on.
41
     *
42
     * @see iDoklad::call()
43
     *
44
     * @return string
45
     */
46
    public function getUri(): string
47
    {
48
        return 'SalesPosEquipment/Info';
49
    }
50
51
    /**
52
     * Vrátí seznam parametrů, které se předají GuzzleHttp\Client.
53
     *
54
     * @see \GuzzleHttp\Client::request()
55
     * @see iDoklad::call()
56
     *
57
     * @return array
58
     */
59
    public function getGuzzleOptions(): array
60
    {
61
        return [];
62
    }
63
}
64