ContactPutModelV2::getModelMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 4
Ratio 66.67 %

Importance

Changes 0
Metric Value
dl 4
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\Contacts;
4
5
use Fousky\Component\iDoklad\Model\BankAccounts\BankAccountPostApiModel;
6
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
7
use Symfony\Component\Validator\Constraints as Assert;
8
9
/**
10
 * @method null|string getCity()
11
 * @method null|string getCompanyName()
12
 * @method null|int getCountryId()
13
 * @method null|BankAccountPostApiModel getDefaultBankAccount()
14
 * @method null|float getDiscountPercentage()
15
 * @method null|string getEmail()
16
 * @method null|string getFax()
17
 * @method null|string getFirstname()
18
 * @method null|string getIdentificationNumber()
19
 * @method null|bool getIsSendReminder()
20
 * @method null|string getMobile()
21
 * @method null|string getPhone()
22
 * @method null|string getPostalCode()
23
 * @method null|string getStreet()
24
 * @method null|string getSurname()
25
 * @method null|string getTitle()
26
 * @method null|string getVatIdentificationNumber()
27
 * @method null|string getVatIdentificationNumberSk()
28
 * @method null|string getWww()
29
 *
30
 * @author Lukáš Brzák <[email protected]>
31
 */
32 View Code Duplication
class ContactPutModelV2 extends iDokladAbstractModel
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
33
{
34
    /**
35
     * @Assert\Length(min="0", max="50")
36
     */
37
    public $City;
38
39
    /**
40
     * @Assert\Length(min="0", max="200")
41
     */
42
    public $CompanyName;
43
44
    public $CountryId;
45
46
    /**
47
     * @var BankAccountPostApiModel
48
     * @Assert\Valid()
49
     */
50
    public $DefaultBankAccount;
51
52
    public $DiscountPercentage;
53
54
    /**
55
     * @Assert\Length(min="0", max="50")
56
     */
57
    public $Email;
58
59
    /**
60
     * @Assert\Length(min="0", max="20")
61
     */
62
    public $Fax;
63
64
    /**
65
     * @Assert\Length(min="0", max="50")
66
     */
67
    public $Firstname;
68
69
    /**
70
     * @Assert\Length(min="0", max="20")
71
     */
72
    public $IdentificationNumber;
73
74
    public $IsSendReminder;
75
76
    /**
77
     * @Assert\Length(min="0", max="20")
78
     */
79
    public $Mobile;
80
81
    /**
82
     * @Assert\Length(min="0", max="20")
83
     */
84
    public $Phone;
85
86
    /**
87
     * @Assert\Length(min="0", max="11")
88
     */
89
    public $PostalCode;
90
91
    /**
92
     * @Assert\Length(min="0", max="100")
93
     */
94
    public $Street;
95
96
    /**
97
     * @Assert\Length(min="0", max="50")
98
     */
99
    public $Surname;
100
101
    /**
102
     * @Assert\Length(min="0", max="50")
103
     */
104
    public $Title;
105
106
    /**
107
     * @Assert\Length(min="0", max="20")
108
     */
109
    public $VatIdentificationNumber;
110
111
    /**
112
     * @Assert\Length(min="0", max="20")
113
     */
114
    public $VatIdentificationNumberSk;
115
116
    /**
117
     * @Assert\Length(min="0", max="50")
118
     */
119
    public $Www;
120
121
    /**
122
     * @return array
123
     */
124
    public static function getModelMap(): array
125
    {
126
        return [
127
            'DefaultBankAccount' => BankAccountPostApiModel::class,
128
        ];
129
    }
130
}
131