prefixes; } /** * Get the current page. * * @return array|null */ public function current() { if (!$this->page) { $this->page = $this->executeCall(); } if (isset($this->page['prefixes'])) { $this->updatePrefixes(); } return $this->get($this->itemsPath, $this->page); } /** * Add new prefixes to the list. * * @return array */ private function updatePrefixes() { foreach ($this->page['prefixes'] as $prefix) { if (!in_array($prefix, $this->prefixes)) { $this->prefixes[] = $prefix; } } } }