BankAccountApiModel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

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