BankAccountApiModel::getModelMap()   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\Banks;
4
5
use Fousky\Component\iDoklad\Model\Currencies\CurrencyApiModel;
6
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
7
8
/**
9
 * @method null|string getAccountNumber()
10
 * @method null|BankApiModel getBank()
11
 * @method null|int getBankId()
12
 * @method null|CurrencyApiModel getCurrency()
13
 * @method null|int getCurrencyId()
14
 * @method null|\DateTime getDateLastChange()
15
 * @method null|string getIban()
16
 * @method null|int getId()
17
 * @method null|bool getIsDefault()
18
 * @method null|string getName()
19
 * @method null|string getSwift()
20
 *
21
 * @author Lukáš Brzák <[email protected]>
22
 */
23
class BankAccountApiModel extends iDokladAbstractModel
24
{
25
    public $AccountNumber;
26
27
    public $Bank;
28
29
    public $BankId;
30
31
    public $Currency;
32
33
    public $CurrencyId;
34
35
    public $DateLastChange;
36
37
    public $Iban;
38
39
    public $Id;
40
41
    public $IsDefault;
42
43
    public $Name;
44
45
    public $Swift;
46
47
    /**
48
     * @return array
49
     */
50
    public static function getModelMap(): array
51
    {
52
        return [
53
            'Bank' => BankApiModel::class,
54
            'Currency' => CurrencyApiModel::class,
55
        ];
56
    }
57
58
    /**
59
     * @return array
60
     */
61
    public static function getDateMap(): array
62
    {
63
        return [
64
            'DateLastChange',
65
        ];
66
    }
67
}
68