/** * @param AbstractRequest $request * @return \Sched\Response\AbstractResponse */ public function performRequest(AbstractRequest $request) { $httpResponse = $this->post($request->getApiEndpoint(), $request->getData()); $response = $request->getResponseObject(); $response->setResponse($httpResponse); return $response; }
/** * @param array $tags * @return \Sched\Request\Session\CreateRequest */ public function setTags(array $tags) { return parent::setTags(implode(',', $tags)); }
/** * @param \DateTime $date * @return \Sched\Request\Site\CreateRequest */ public function setEventEnd(\DateTime $date) { return parent::setEventEnd($date->getTimestamp()); }
/** * @param \DateTime $date * @return \Sched\Request\Site\SyncRequest */ public function setModifyDate(\DateTime $date) { return parent::setModifyDate($date->getTimestamp()); }