protected function _getOnDeleteErrorMessage(Entity $milestone) { $message = "milestone '" . $milestone->getTitle() . "'"; $message .= " could not be deleted from project '" . $milestone->getProjectId() . "'"; return $message; }
/** * Instantiate a new milestone entity * * @return \Sirprize\Basecamp\Milestone\Entity */ public function getMilestoneInstance() { $milestone = new Entity(); $milestone->setHttpClient($this->_getHttpClient())->setService($this->_getService()); return $milestone; }