/** * @return self * @throws \Yandex\Fotki\Exception\Api\TagsCollection */ public function load() { try { $this->_loadCollectionData($this->_apiUrl); foreach ($this->_entries as $entry) { $tag = new \Yandex\Fotki\Api\Tag($this->_transport, $entry['links']['self']); $tag->initWithData($entry); $this->_data[$tag->getId()] = $tag; } } catch (\Yandex\Fotki\Exception\Api $ex) { throw new \Yandex\Fotki\Exception\Api\TagsCollection($ex->getMessage(), $ex->getCode(), $ex); } return $this; }