getChannels(); $channel = array_shift($channels); # Using presenter $presenter = ServicePresenter::create($environment); $current_week = date('Y-m-d', strtotime('this week')); $programs = $presenter->getPrograms($channel->id, $current_week); # Or using repository $current_week = date('Y-m-d', strtotime('this week')); $repository = ProgramRepository::create($environment, $channel->id, $current_week); $programs = $repository->get();