ContactPostApiModel::getModelMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
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 getIsRegisteredForVatOnPay()
20
 * @method null|bool getIsSendReminder()
21
 * @method null|string getMobile()
22
 * @method null|string getPhone()
23
 * @method null|string getPostalCode()
24
 * @method null|string getStreet()
25
 * @method null|string getSurname()
26
 * @method null|string getTitle()
27
 * @method null|string getVatIdentificationNumber()
28
 * @method null|string getVatIdentificationNumberSk()
29
 * @method null|string getWww()
30
 *
31
 * @author Lukáš Brzák <[email protected]>
32
 */
33 View Code Duplication
class ContactPostApiModel 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...
34
{
35
    public $City;
36
37
    /**
38
     * @Assert\NotBlank()
39
     * @Assert\Length(min="0", max="200")
40
     */
41
    public $CompanyName;
42
43
    /**
44
     * @Assert\NotBlank()
45
     */
46
    public $CountryId;
47
48
    /**
49
     * @var BankAccountPostApiModel
50
     */
51
    public $DefaultBankAccount;
52
53
    public $DiscountPercentage;
54
55
    public $Email;
56
57
    public $Fax;
58
59
    public $Firstname;
60
61
    public $IdentificationNumber;
62
63
    /**
64
     * @Assert\Expression(expression="value == true or value == false", message="This value must be true or false.")
65
     */
66
    public $IsRegisteredForVatOnPay;
67
68
    /**
69
     * @Assert\Expression(expression="value == true or value == false", message="This value must be true or false.")
70
     */
71
    public $IsSendReminder;
72
73
    public $Mobile;
74
75
    public $Phone;
76
77
    public $PostalCode;
78
79
    public $Street;
80
81
    public $Surname;
82
83
    public $Title;
84
85
    public $VatIdentificationNumber;
86
87
    public $VatIdentificationNumberSk;
88
89
    public $Www;
90
91
    /**
92
     * @return array
93
     */
94
    public static function getModelMap(): array
95
    {
96
        return [
97
            'DefaultBankAccount' => BankAccountPostApiModel::class,
98
        ];
99
    }
100
}
101