/** * Returns an ArchiveList. The <code>items()</code> method of this object returns a list of * archives that are completed and in-progress, for your API key. * * @param integer $offset Optional. The index offset of the first archive. 0 is offset of the * most recently started archive. 1 is the offset of the archive that started prior to the most * recent archive. If you do not specify an offset, 0 is used. * @param integer $count Optional. The number of archives to be returned. The maximum number of * archives returned is 1000. * @return ArchiveList An ArchiveList object. Call the items() method of the ArchiveList object * to return an array of Archive objects. */ public function listArchives($offset = 0, $count = null) { // validate params Validators::validateOffsetAndCount($offset, $count); $archiveListData = $this->client->listArchives($offset, $count); return new ArchiveList($archiveListData, array('client' => $this->client)); }