DetailedReport::getData()   A
last analyzed

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 0
1
<?php declare(strict_types=1);
2
3
namespace Syncer\Dto\Toggl;
4
5
/**
6
 * Class DetailedReport
7
 * @package Syncer\Dto\Toggl
8
 *
9
 * @author Matthieu Calie <[email protected]>
10
 */
11
class DetailedReport
12
{
13
    /**
14
     * @var integer
15
     */
16
    private $totalGrand;
17
18
    /**
19
     * @var integer
20
     */
21
    private $totalBillable;
22
23
    /**
24
     * @var integer
25
     */
26
    private $totalCount;
27
28
    /**
29
     * @var integer
30
     */
31
    private $perPage;
32
33
    /**
34
     * @var array
35
     */
36
    private $data;
37
38
    /**
39
     * @return int
40
     */
41
    public function getTotalGrand(): int
42
    {
43
        return $this->totalGrand;
44
    }
45
46
    /**
47
     * @param int $totalGrand
48
     */
49
    public function setTotalGrand(int $totalGrand)
50
    {
51
        $this->totalGrand = $totalGrand;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getTotalBillable(): int
58
    {
59
        return $this->totalBillable;
60
    }
61
62
    /**
63
     * @param int $totalBillable
64
     */
65
    public function setTotalBillable(int $totalBillable)
66
    {
67
        $this->totalBillable = $totalBillable;
68
    }
69
70
    /**
71
     * @return int
72
     */
73
    public function getTotalCount(): int
74
    {
75
        return $this->totalCount;
76
    }
77
78
    /**
79
     * @param int $totalCount
80
     */
81
    public function setTotalCount(int $totalCount)
82
    {
83
        $this->totalCount = $totalCount;
84
    }
85
86
    /**
87
     * @return int
88
     */
89
    public function getPerPage(): int
90
    {
91
        return $this->perPage;
92
    }
93
94
    /**
95
     * @param int $perPage
96
     */
97
    public function setPerPage(int $perPage)
98
    {
99
        $this->perPage = $perPage;
100
    }
101
102
    /**
103
     * @return array|TimeEntry[]
104
     */
105
    public function getData(): array
106
    {
107
        return $this->data;
108
    }
109
110
    /**
111
     * @param array $data
112
     */
113
    public function setData(array $data)
114
    {
115
        $this->data = $data;
116
    }
117
}
118