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

VatRateApiModel::getModelMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\VatRates;
4
5
use Fousky\Component\iDoklad\LOV\VatRateTypeEnum;
6
use Fousky\Component\iDoklad\Model\Countries\CountryApiModel;
7
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
8
9
/**
10
 * @method null|CountryApiModel getCountry()
11
 * @method null|int getCountryId()
12
 * @method null|\DateTime getDateLastChange()
13
 * @method null|\DateTime getDateValidityFrom()
14
 * @method null|\DateTime getDateValidityTo()
15
 * @method null|int getId()
16
 * @method null|string getName()
17
 * @method null|float getRate()
18
 * @method null|VatRateTypeEnum getRateType()
19
 *
20
 * @author Lukáš Brzák <[email protected]>
21
 */
22
class VatRateApiModel extends iDokladAbstractModel
23
{
24
    public $Country;
25
    public $CountryId;
26
    public $DateLastChange;
27
    public $DateValidityFrom;
28
    public $DateValidityTo;
29
    public $Id;
30
    public $Name;
31
    public $Rate;
32
    public $RateType;
33
34
    /**
35
     * @return array
36
     */
37
    public static function getDateMap(): array
38
    {
39
        return [
40
            'DateLastChange',
41
            'DateValidityFrom',
42
            'DateValidityTo',
43
        ];
44
    }
45
46
    /**
47
     * @return array
48
     */
49
    public static function getModelMap(): array
50
    {
51
        return [
52
            'Country' => CountryApiModel::class,
53
        ];
54
    }
55
56
    /**
57
     * @return array
58
     */
59
    public static function getEnumMap(): array
60
    {
61
        return [
62
            'RateType' => VatRateTypeEnum::class,
63
        ];
64
    }
65
}
66