Conditions | 4 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function setTransaction($transactionID, $data) |
||
40 | { |
||
41 | $decryptedData = $this->getDecryptedData($data); |
||
42 | |||
43 | foreach ($decryptedData->transactions->transaction as $transaction) { |
||
44 | if ($transactionID == (int)$transaction->id) { |
||
45 | $this->transaction = $transaction; |
||
46 | break; |
||
47 | } |
||
48 | } |
||
49 | |||
50 | if (!$this->transaction) { |
||
51 | $this->transaction = false; |
||
52 | } |
||
53 | |||
54 | return $this; |
||
55 | } |
||
84 |