Completed
Pull Request — master (#173)
by
unknown
27:02
created

GetAUJobSummaryResponse::setAuSummary()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace net\authorize\api\contract\v1;
4
5
/**
6
 * Class representing GetAUJobSummaryResponse
7
 */
8
class GetAUJobSummaryResponse extends ANetApiResponseType
9
{
10
11
    /**
12
     * @property \net\authorize\api\contract\v1\AuResponseType[] $auSummary
13
     */
14
    private $auSummary = null;
15
16
    /**
17
     * Adds as auResponse
18
     *
19
     * @return self
20
     * @param \net\authorize\api\contract\v1\AuResponseType $auResponse
21
     */
22
    public function addToAuSummary(\net\authorize\api\contract\v1\AuResponseType $auResponse)
23
    {
24
        $this->auSummary[] = $auResponse;
25
        return $this;
26
    }
27
28
    /**
29
     * isset auSummary
30
     *
31
     * @param scalar $index
32
     * @return boolean
33
     */
34
    public function issetAuSummary($index)
35
    {
36
        return isset($this->auSummary[$index]);
37
    }
38
39
    /**
40
     * unset auSummary
41
     *
42
     * @param scalar $index
43
     * @return void
44
     */
45
    public function unsetAuSummary($index)
46
    {
47
        unset($this->auSummary[$index]);
48
    }
49
50
    /**
51
     * Gets as auSummary
52
     *
53
     * @return \net\authorize\api\contract\v1\AuResponseType[]
54
     */
55
    public function getAuSummary()
56
    {
57
        return $this->auSummary;
58
    }
59
60
    /**
61
     * Sets a new auSummary
62
     *
63
     * @param \net\authorize\api\contract\v1\AuResponseType[] $auSummary
64
     * @return self
65
     */
66
    public function setAuSummary(array $auSummary)
67
    {
68
        $this->auSummary = $auSummary;
69
        return $this;
70
    }
71
72
73
}
74
75