GetGroupResponse::addGroup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
namespace OmnideskBundle\Response\Group;
3
4
use Doctrine\Common\Collections\ArrayCollection;
5
use OmnideskBundle\Model\Group;
6
7
/**
8
 * Class GetGroupResponse
9
 * @package OmnideskBundle\Response\Group
10
 */
11
class GetGroupResponse
12
{
13
    /**
14
     * @var Group[]|ArrayCollection
15
     */
16
    private $group;
17
18
    /**
19
     * @var int
20
     */
21
    private $totalCount;
22
23
    /**
24
     * GetGroupResponse constructor.
25
     */
26
    public function __construct()
27
    {
28
        $this->group = new ArrayCollection();
29
    }
30
31
    /**
32
     * @return Group[]|ArrayCollection
33
     */
34
    public function getGroup()
35
    {
36
        return $this->group;
37
    }
38
39
    /**
40
     * @param Group $group
41
     * @return $this
42
     */
43
    public function addGroup(Group $group)
44
    {
45
        $this->group->add($group);
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function getTotalCount()
54
    {
55
        return $this->totalCount;
56
    }
57
58
    /**
59
     * @param int $totalCount
60
     * @return $this
61
     */
62
    public function setTotalCount($totalCount)
63
    {
64
        $this->totalCount = $totalCount;
65
66
        return $this;
67
    }
68
}
69