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

BaseTimetableStrategy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A initTimetable() 0 8 1
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