Completed
Push — master ( 566e3d...cbf465 )
by Ariel
06:35
created

BaseTimetableStrategy::initTimetable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 2
1
<?php
2
3
namespace Timegridio\Concierge\Timetable\Strategies;
4
5
use Timegridio\Concierge\Timetable\Timetable;
6
7
class BaseTimetableStrategy
8
{
9
    protected $timetable;
10
11
    protected function initTimetable($starting, $days)
12
    {
13
        $this->timetable
14
             ->format('date.service.time')
15
             ->from($starting)
16
             ->future($days)
17
             ->init();
18
    }
19
}
20