ReceivedDocumentPaymentApiModelExpand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getModelMap() 0 8 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\ReceivedDocumentPayments;
4
5
use Fousky\Component\iDoklad\Model\Currencies\CurrencyApiModel;
6
use Fousky\Component\iDoklad\Model\PaymentOptions\PaymentOptionApiModel;
7
use Fousky\Component\iDoklad\Model\ReceivedInvoices\ReceivedInvoiceApiModel;
8
9
/**
10
 * @method null|CurrencyApiModel getCurrency()
11
 * @method null|PaymentOptionApiModel getPaymentOption()
12
 * @method null|ReceivedInvoiceApiModel getReceivedInvoice()
13
 *
14
 * @author Lukáš Brzák <[email protected]>
15
 */
16
class ReceivedDocumentPaymentApiModelExpand extends ReceivedDocumentPaymentApiModel
17
{
18
    public $Currency;
19
20
    public $PaymentOption;
21
22
    public $ReceivedInvoice;
23
24
    /**
25
     * @return array
26
     */
27
    public static function getModelMap(): array
28
    {
29
        return [
30
            'Currency' => CurrencyApiModel::class,
31
            'PaymentOption' => PaymentOptionApiModel::class,
32
            'ReceivedInvoice' => ReceivedInvoiceApiModel::class,
33
        ];
34
    }
35
}
36