Esempio n. 1
0
 protected function _getOnDeleteErrorMessage(Entity $todoItem)
 {
     $message = "todo-item '" . $todoItem->getContent() . "'";
     $message .= " could not be deleted from todo-list '" . $todoItem->getTodoListId() . "'";
     return $message;
 }
Esempio n. 2
0
 /**
  * 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;
 }