post = $post; $this->query = $hooks->wrap($query); $this->command = $hooks->wrap($command); $this->calendars = $hooks->wrap($calendars); } public function execute( $id, $calendarId ) { $calendar = $this->calendars->findById( $calendarId ); $shift = $this->query->findById( $id ); $this->command->changeCalendar( $shift, $calendar ); $to = 'schedule'; $msg = '__Calendar Changed__'; $return = array( $to, $msg ); return $return; } }