BankAccountPostApiModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\BankAccounts;
4
5
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * @method null|string getAccountNumber()
10
 * @method null|int getBankId()
11
 * @method null|int getCurrencyId()
12
 * @method null|string getIban()
13
 * @method null|string getName()
14
 * @method null|string getSwift()
15
 *
16
 * @author Lukáš Brzák <[email protected]>
17
 */
18
class BankAccountPostApiModel extends iDokladAbstractModel
19
{
20
    /**
21
     * @Assert\Length(min="0", max="50")
22
     */
23
    public $AccountNumber;
24
25
    public $BankId;
26
27
    /**
28
     * @Assert\NotBlank()
29
     */
30
    public $CurrencyId;
31
32
    /**
33
     * @Assert\Length(min="0", max="50")
34
     */
35
    public $Iban;
36
37
    /**
38
     * @Assert\Length(min="0", max="100")
39
     */
40
    public $Name;
41
42
    /**
43
     * @Assert\Length(min="0", max="11")
44
     */
45
    public $Swift;
46
47
    /**
48
     * @param array $properties
49
     *
50
     * @throws \InvalidArgumentException
51
     */
52
    public function __construct(array $properties = [])
53
    {
54
        $this->processProperties($properties);
55
    }
56
}
57