src/Timetable/Timetable.php
public function init()
    {
        $this->timetable = [];

        $dimensions['service'] = $this->inflateServices();
        $dimensions['date'] = $this->inflateDates();
        $dimensions['time'] = $this->inflateTimes();

        foreach ($dimensions['service'] as $service) {
            foreach ($dimensions['date'] as $date) {
                foreach ($dimensions['time'] as $time) {
                    $this->capacity($date, $time, $service, 0);
                }
            }
        }

        return $this;
    }
public function init()
    {
        $this->timetable = [];

        $dimensions['service'] = $this->inflateServices();
        $dimensions['date'] = $this->inflateDates();
        $dimensions['time'] = $this->inflateTimes();

        foreach ($dimensions['service'] as $service) {
            foreach ($dimensions['date'] as $date) {
                foreach ($dimensions['time'] as $time) {
                    $this->capacity($date, $time, $service, 0);
                }
            }
        }

        return $this;
    }
public function init ( ) { $ this -> timetable = [ ] ; $ dimensions [ 'service' ] = $ this -> inflateServices ( ) ; $ dimensions [ 'date' ] = $ this -> inflateDates ( ) ; $ dimensions [ 'time' ] = $ this -> inflateTimes ( ) ; foreach ( $ dimensions [ 'service' ] as $ service ) { foreach ( $ dimensions [ 'date' ] as $ date ) { foreach ( $ dimensions [ 'time' ] as $ time ) { $ this -> capacity ( $ date , $ time , $ service , 0 ) ; } } } return $ this ; }
Initialize Timetable.

@return $this
Initialize Timetable .