HoursWorkedSummary::getTotalHours()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Scheduler\Domain\Model\Shift;
4
5
use DateTimeInterface;
6
7
class HoursWorkedSummary
8
{
9
    private $startDate;
10
    private $endDate;
11
    private $hours;
12
13
    public function __construct(DateTimeInterface $start, DateTimeInterface $end, $hours)
14
    {
15
        $this->startDate = $start;
16
        $this->endDate = $end;
17
        $this->hours = $hours;
18
    }
19
20
    public function getStartDate()
21
    {
22
        return $this->startDate;
23
    }
24
25
    public function getEndDate()
26
    {
27
        return $this->endDate;
28
    }
29
30
    public function getTotalHours()
31
    {
32
        return $this->hours;
33
    }
34
}
35