GetCurrencies::getUri()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Functions\Currencies;
4
5
use Fousky\Component\iDoklad\Functions\iDokladAbstractFunction;
6
use Fousky\Component\iDoklad\Model\Currencies\CurrencyCollectionModel;
7
8
/**
9
 * @author Lukáš Brzák <[email protected]>
10
 */
11
class GetCurrencies extends iDokladAbstractFunction
12
{
13
    /**
14
     * Get iDokladModelInterface class.
15
     *
16
     * @see iDokladModelInterface
17
     *
18
     * @return string
19
     */
20
    public function getModelClass(): string
21
    {
22
        return CurrencyCollectionModel::class;
23
    }
24
25
    /**
26
     * GET|POST|PUT|DELETE e.g.
27
     *
28
     * @see iDoklad::request()
29
     *
30
     * @return string
31
     */
32
    public function getHttpMethod(): string
33
    {
34
        return 'GET';
35
    }
36
37
    /**
38
     * Return base URI, e.g. /invoices; /invoice/1/edit and so on.
39
     *
40
     * @see iDoklad::call()
41
     *
42
     * @return string
43
     */
44
    public function getUri(): string
45
    {
46
        return 'Currencies';
47
    }
48
49
    /**
50
     * Vrátí seznam parametrů, které se předají GuzzleHttp\Client.
51
     *
52
     * @see \GuzzleHttp\Client::request()
53
     * @see iDoklad::call()
54
     *
55
     * @return array
56
     */
57
    public function getGuzzleOptions(): array
58
    {
59
        return [];
60
    }
61
}
62