IBANTransaction::getTransactionId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
* (c) Nimbles b.v. <[email protected]>
4
*
5
* For the full copyright and license information, please view the LICENSE
6
* file that was distributed with this source code.
7
*/
8
9
namespace Nimbles\CMTelecom\Model;
10
11
/**
12
 * Class IBANTransaction
13
 */
14
class IBANTransaction
15
{
16
    /** @var string */
17
    private $transactionId;
18
19
    /** @var string */
20
    private $merchantReference;
21
22
    /** @var string */
23
    private $entranceCode;
24
25
    /** @var string */
26
    private $authenticationUrl;
27
28
    /**
29
     * @param string      $transactionId
30
     * @param string      $merchantReference
31
     * @param string      $entranceCode
32
     * @param string|null $authenticationUrl
33
     */
34
    public function __construct(string $transactionId, string $merchantReference, string $entranceCode, string $authenticationUrl = null)
35
    {
36
        $this->transactionId     = $transactionId;
37
        $this->merchantReference = $merchantReference;
38
        $this->entranceCode      = $entranceCode;
39
        $this->authenticationUrl = $authenticationUrl;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getTransactionId() : string
46
    {
47
        return $this->transactionId;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getMerchantReference() : string
54
    {
55
        return $this->merchantReference;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getEntranceCode() : string
62
    {
63
        return $this->entranceCode;
64
    }
65
66
    /**
67
     * @return string|null
68
     */
69
    public function getAuthenticationUrl()
70
    {
71
        return $this->authenticationUrl;
72
    }
73
}
74