public function ScheduleAddFollows(CbgrnScheduleFollowContentType $follow) { // $follow : CbgrnScheduleFollowContentType class (NOT array) $this->CheckAndSetHeader(__FUNCTION__); $reg_args["follow"] = $follow->getObjectVars(); $this->encodeString($reg_args); $results = parent::ScheduleAddFollows($reg_args); $this->methodClose(); if (isset($results->schedule_event)) { if (is_array($results->schedule_event)) { foreach ($results->schedule_event as $event) { $ret_val[] = new CbgrnEventType($event); } } else { $ret_val[] = new CbgrnEventType($results->schedule_event); } } else { // no schedule found } return $this->decodeString($ret_val); }