/** * Fetches all the objects of the given api. * * @param array $parameters * @return array */ public function fetch(array $parameters = []) { $this->api->setPerPage(100); $results = $this->processRequest($parameters); while ($this->nextToken) { $results = array_merge($results, $this->processRequest($parameters)); } return $results; }