Total Complexity | 7 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | trait FromToDateTrait |
||
15 | { |
||
16 | /** |
||
17 | * @var \Carbon\Carbon |
||
18 | */ |
||
19 | protected $from; |
||
20 | |||
21 | /** |
||
22 | * @var \Carbon\Carbon |
||
23 | */ |
||
24 | protected $to; |
||
25 | |||
26 | public function setFrom(Carbon $date) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return \Carbon\Carbon |
||
35 | */ |
||
36 | public function getFrom(): Carbon |
||
39 | } |
||
40 | |||
41 | public function setTo(Carbon $to) |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return \Carbon\Carbon |
||
50 | */ |
||
51 | public function getTo(): Carbon |
||
54 | } |
||
55 | |||
56 | |||
57 | protected function throwExceptionIfFromToAreNotSet() |
||
63 | } |