Completed
Push — master ( 9d24ed...186a0b )
by
unknown
29:37
created

issetTransactions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace net\authorize\api\contract\v1;
4
5
/**
6
 * Class representing GetUnsettledTransactionListResponse
7
 */
8
class GetUnsettledTransactionListResponse extends ANetApiResponseType
9
{
10
11
    /**
12
     * @property \net\authorize\api\contract\v1\TransactionSummaryType[] $transactions
13
     */
14
    private $transactions = null;
15
16
    /**
17
     * @property integer $totalNumInResultSet
18
     */
19
    private $totalNumInResultSet = null;
20
21
    /**
22
     * Adds as transaction
23
     *
24
     * @return self
25
     * @param \net\authorize\api\contract\v1\TransactionSummaryType $transaction
26
     */
27
    public function addToTransactions(\net\authorize\api\contract\v1\TransactionSummaryType $transaction)
28
    {
29
        $this->transactions[] = $transaction;
30
        return $this;
31
    }
32
33
    /**
34
     * isset transactions
35
     *
36
     * @param scalar $index
37
     * @return boolean
38
     */
39
    public function issetTransactions($index)
40
    {
41
        return isset($this->transactions[$index]);
42
    }
43
44
    /**
45
     * unset transactions
46
     *
47
     * @param scalar $index
48
     * @return void
49
     */
50
    public function unsetTransactions($index)
51
    {
52
        unset($this->transactions[$index]);
53
    }
54
55
    /**
56
     * Gets as transactions
57
     *
58
     * @return \net\authorize\api\contract\v1\TransactionSummaryType[]
59
     */
60
    public function getTransactions()
61
    {
62
        return $this->transactions;
63
    }
64
65
    /**
66
     * Sets a new transactions
67
     *
68
     * @param \net\authorize\api\contract\v1\TransactionSummaryType[] $transactions
69
     * @return self
70
     */
71
    public function setTransactions(array $transactions)
72
    {
73
        $this->transactions = $transactions;
74
        return $this;
75
    }
76
77
    /**
78
     * Gets as totalNumInResultSet
79
     *
80
     * @return integer
81
     */
82
    public function getTotalNumInResultSet()
83
    {
84
        return $this->totalNumInResultSet;
85
    }
86
87
    /**
88
     * Sets a new totalNumInResultSet
89
     *
90
     * @param integer $totalNumInResultSet
91
     * @return self
92
     */
93
    public function setTotalNumInResultSet($totalNumInResultSet)
94
    {
95
        $this->totalNumInResultSet = $totalNumInResultSet;
96
        return $this;
97
    }
98
99
100
}
101
102