HoursWorkedSummary   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getStartDate() 0 4 1
A getEndDate() 0 4 1
A getTotalHours() 0 4 1
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