FullDayDates::getEndDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by enea dhack - 14/06/2020 20:40.
4
 */
5
6
namespace Vaened\Searcher\Dates;
7
8
use Carbon\Carbon;
9
10
class FullDayDates extends Dateable
11
{
12
    private Carbon $start;
13
14
    private Carbon $end;
15
16
    public function __construct(Carbon $start, Carbon $end)
17
    {
18
        $this->start = $start;
19
        $this->end = $end;
20
    }
21
22
    public function getStartDate(): Carbon
23
    {
24
        return $this->start->startOfDay();
25
    }
26
27
    public function getEndDate(): Carbon
28
    {
29
        return $this->end->endOfDay();
30
    }
31
}
32