SalesReceiptPaymentApiModelPost   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
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\SalesReceipts;
4
5
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * @see https://app.idoklad.cz/developer/Help/v2/cs/ResourceModel?modelName=SalesReceiptPaymentApiModelPost
10
 *
11
 * @method null|float getPaymentAmount()
12
 * @method null|int getPaymentOptionId()
13
 * @method null|string getPaymentTransactionCode()
14
 *
15
 * @author Lukáš Brzák <[email protected]>
16
 */
17
class SalesReceiptPaymentApiModelPost extends iDokladAbstractModel
18
{
19
    public $PaymentAmount;
20
21
    /**
22
     * @Assert\NotBlank()
23
     * @Assert\GreaterThan(value="0")
24
     */
25
    public $PaymentOptionId;
26
27
    /**
28
     * @Assert\NotBlank()
29
     * @Assert\Length(min="0", max="20")
30
     */
31
    public $PaymentTransactionCode;
32
33
    /**
34
     * @param array $properties
35
     */
36
    public function __construct(array $properties = [])
37
    {
38
        $this->processProperties($properties);
39
    }
40
}
41