Completed
Push — master ( 60aec0...f632bc )
by Andreas
12:47 queued 10:41
created

ThreedSecureAuthenticateTransaction::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Larium\Pay\Transaction;
4
5
class ThreedSecureAuthenticateTransaction implements ThreedSecureAuthenticate
6
{
7
    use Commit;
8
9
    private $pares;
10
11
    private $transactionId;
12
13 1
    public function __construct($pares, $transactionId)
14
    {
15 1
        $this->pares = $pares;
16 1
        $this->transactionId = $transactionId;
17 1
    }
18
19
    public function getPares()
20
    {
21
        return $this->pares;
22
    }
23
24
    public function getTransactionId()
25
    {
26
        return $this->transactionId;
27
    }
28
29
    public function canCommit()
30
    {
31
        return $this->pares
32
            && $this->transactionId;
33
    }
34
}
35