TransactionStatus   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
eloc 8
c 2
b 0
f 0
dl 0
loc 56
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubAccountId() 0 3 1
A getCurrency() 0 3 1
A getClearingType() 0 3 1
A getMode() 0 3 1
A getTime() 0 3 1
A getPortalId() 0 3 1
A getAction() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cakasim\Payone\Sdk\Notification\Message;
6
7
/**
8
 * Implementation of the TransactionStatusInterface.
9
 *
10
 * @author Fabian Böttcher <[email protected]>
11
 * @since 0.1.0
12
 */
13
class TransactionStatus extends AbstractMessage implements TransactionStatusInterface
14
{
15
    /**
16
     * @inheritDoc
17
     */
18
    public function getMode(): string
19
    {
20
        return $this->parameters['mode'];
21
    }
22
23
    /**
24
     * @inheritDoc
25
     */
26
    public function getPortalId(): string
27
    {
28
        return $this->parameters['portalid'];
29
    }
30
31
    /**
32
     * @inheritDoc
33
     */
34
    public function getSubAccountId(): string
35
    {
36
        return $this->parameters['aid'];
37
    }
38
39
    /**
40
     * @inheritDoc
41
     */
42
    public function getAction(): string
43
    {
44
        return $this->parameters['txaction'];
45
    }
46
47
    /**
48
     * @inheritDoc
49
     */
50
    public function getTime(): int
51
    {
52
        return (int) $this->parameters['txtime'];
53
    }
54
55
    /**
56
     * @inheritDoc
57
     */
58
    public function getClearingType(): string
59
    {
60
        return $this->parameters['clearingtype'];
61
    }
62
63
    /**
64
     * @inheritDoc
65
     */
66
    public function getCurrency(): string
67
    {
68
        return $this->parameters['currency'];
69
    }
70
}
71