CashVoucherItemApiModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEnumMap() 0 7 1
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