ReceivedDocumentPaymentApiModelInsert   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDateMap() 0 7 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\ReceivedDocumentPayments;
4
5
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * @method null|\DateTime getDateOfPayment()
10
 * @method null|\DateTime getDateOfVatApplication()
11
 * @method null|int getInvoiceId()
12
 * @method null|float getPaymentAmount()
13
 * @method null|int getPaymentOptionId()
14
 *
15
 * @author Lukáš Brzák <[email protected]>
16
 */
17
class ReceivedDocumentPaymentApiModelInsert extends iDokladAbstractModel
18
{
19
    /** @Assert\DateTime() */
20
    public $DateOfPayment;
21
22
    /** @Assert\DateTime() */
23
    public $DateOfVatApplication;
24
25
    /**
26
     * @var int
27
     *
28
     * @Assert\NotBlank()
29
     * @Assert\Type(type="int")
30
     */
31
    public $InvoiceId;
32
33
    /** @Assert\Type(type="float") */
34
    public $PaymentAmount;
35
36
    /** @Assert\Type(type="int") */
37
    public $PaymentOptionId;
38
39
    /**
40
     * @return array
41
     */
42
    public static function getDateMap(): array
43
    {
44
        return [
45
            'DateOfPayment',
46
            'DateOfVatApplication',
47
        ];
48
    }
49
}
50