Cryptogram3dSecureAuthRequiredModel::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Korobovn\CloudPayments\Message\Response\Model;
6
7
use Korobovn\CloudPayments\Message\Traits\ModelField\PaReqString;
8
use Korobovn\CloudPayments\Message\Traits\ModelField\AcsUrlString;
9
use Korobovn\CloudPayments\Message\Traits\ModelField\TransactionIdInt;
10
11
/**
12
 * @see https://developers.cloudpayments.ru/#oplata-po-kriptogramme
13
 */
14
class Cryptogram3dSecureAuthRequiredModel extends AbstractModel
15
{
16
    use TransactionIdInt,
17
        PaReqString,
18
        AcsUrlString;
19
20
    /**
21
     * {@inheritDoc}
22
     */
23
    public function toArray(): array
24
    {
25
        return [
26
            'TransactionId' => $this->getTransactionId(),
27
            'PaReq'         => $this->getPaReq(),
28
            'AcsUrl'        => $this->getAcsUrl(),
29
        ];
30
    }
31
}
32