Completed
Push — master ( bc8cc8...6e347a )
by Dmitry
04:49
created

PurchaseResultTrait::resetPurchaseResults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\finance\cart;
4
5
/**
6
 * Trait PurchaseResultTrait
7
 */
8
trait PurchaseResultTrait
9
{
10
    protected $success = [];
11
12
    protected $error = [];
13
14
    protected $pending = [];
15
16
    protected function resetPurchaseResults()
17
    {
18
        $this->success = [];
19
        $this->error = [];
20
        $this->pending = [];
21
    }
22
23
    public function getErrorPurchaseExceptions()
24
    {
25
        return $this->error;
26
    }
27
28
    public function getSuccessPurchases()
29
    {
30
        return $this->success;
31
    }
32
33
    public function getPendingPurchaseExceptions()
34
    {
35
        return $this->pending;
36
    }
37
}
38