ListStaffResponse   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 52
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getStaffs() 0 4 1
A addStaff() 0 4 1
A getTotalCount() 0 4 1
A setTotalCount() 0 4 1
1
<?php
2
namespace OmnideskBundle\Response\Staff;
3
4
use Doctrine\Common\Collections\ArrayCollection;
5
use OmnideskBundle\Model\Staff;
6
7
/**
8
 * Class ListStaffResponse
9
 * @package OmnideskBundle\Response\Staff
10
 */
11
class ListStaffResponse
12
{
13
    /**
14
     * @var Staff[]|ArrayCollection
15
     */
16
    private $staffs;
17
18
    /**
19
     * @var int
20
     */
21
    private $totalCount;
22
23
    /**
24
     * ListStaffResponse constructor.
25
     */
26
    public function __construct()
27
    {
28
        $this->staffs = new ArrayCollection();
29
    }
30
31
    /**
32
     * @return Staff[]|ArrayCollection
33
     */
34
    public function getStaffs()
35
    {
36
        return $this->staffs;
37
    }
38
39
    /**
40
     * @param Staff $staff
41
     */
42
    public function addStaff(Staff $staff)
43
    {
44
        $this->staffs->add($staff);
45
    }
46
47
    /**
48
     * @return int
49
     */
50
    public function getTotalCount()
51
    {
52
        return $this->totalCount;
53
    }
54
55
    /**
56
     * @param int $totalCount
57
     */
58
    public function setTotalCount($totalCount)
59
    {
60
        $this->totalCount = $totalCount;
61
    }
62
}
63