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

ThreedSecureAuthenticateTransaction::canCommit()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 0
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 0
crap 6
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