/** * 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}>"); }
public function forList(WList $list, $completed = false) { $data = ['list_id' => $list->getId(), 'completed' => $completed]; return $this->getItemsForAttributes($this->getBaseUrl(), $data, "ArrayCollection<{$this->type}>"); }
public function makePrivate(WList $data) { return $this->patch($this->getBaseUrl() . '/' . $data->getId(), $this->type, ['public' => false]); }