Esempio n. 1
0
 /**
  * Performs a GET for a list ID on the resource.
  * @param WList $list - The list id.
  * @return ArrayCollection
  */
 public function forList(WList $list)
 {
     return $this->getItemsForAttribute($this->getBaseUrl(), 'list_id', $list->getId(), "ArrayCollection<{$this->type}>");
 }
Esempio n. 2
0
 public function forList(WList $list, $completed = false)
 {
     $data = ['list_id' => $list->getId(), 'completed' => $completed];
     return $this->getItemsForAttributes($this->getBaseUrl(), $data, "ArrayCollection<{$this->type}>");
 }
Esempio n. 3
0
 public function makePrivate(WList $data)
 {
     return $this->patch($this->getBaseUrl() . '/' . $data->getId(), $this->type, ['public' => false]);
 }