GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 9f3915...092909 )
by Lukáš
02:06
created

GetVatRate   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 62
rs 10
c 0
b 0
f 0

5 Methods

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