protected function _getOnDeleteErrorMessage(Entity $todoItem) { $message = "todo-item '" . $todoItem->getContent() . "'"; $message .= " could not be deleted from todo-list '" . $todoItem->getTodoListId() . "'"; return $message; }
/** * Instantiate a new todoItem entity * * @return \Sirprize\Basecamp\TodoItem\Entity */ public function getTodoItemInstance() { $todoItem = new Entity(); $todoItem->setHttpClient($this->_getHttpClient())->setService($this->_getService()); return $todoItem; }