CashVoucherItemApiModel::getEnumMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\CashVoucher;
4
5
use Fousky\Component\iDoklad\LOV\PriceTypeWithoutOnlyBaseEnum;
6
use Fousky\Component\iDoklad\LOV\VatRateTypeEnum;
7
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
8
9
/**
10
 * @method null|float getAmount()
11
 * @method null|int getId()
12
 * @method null|string getName()
13
 * @method null|float getPrice()
14
 * @method null|PriceTypeWithoutOnlyBaseEnum getPriceType()
15
 * @method null|bool getStatus()
16
 * @method null|string getVariableSymbol()
17
 * @method null|float getVatRate()
18
 * @method null|VatRateTypeEnum getVatRateType()
19
 *
20
 * @author Lukáš Brzák <[email protected]>
21
 */
22
class CashVoucherItemApiModel extends iDokladAbstractModel
23
{
24
    public $Amount;
25
26
    public $Id;
27
28
    public $Name;
29
30
    public $Price;
31
32
    public $PriceType;
33
34
    public $Status;
35
36
    public $VariableSymbol;
37
38
    public $VatRate;
39
40
    public $VatRateType;
41
42
    /**
43
     * @return array
44
     */
45
    public static function getEnumMap(): array
46
    {
47
        return [
48
            'PriceType' => PriceTypeWithoutOnlyBaseEnum::class,
49
            'VatRateType' => VatRateTypeEnum::class,
50
        ];
51
    }
52
}
53