logPackageList = $resp->getLogGroupListArray(); $this->nextCursor = (isset($header['x-log-cursor']))?$header['x-log-cursor']:null; } public function getLogPackageList(){ return $this->logPackageList; } public function getNextCursor(){ return $this->nextCursor; } public function getCount() { return count($this->logPackageList); } public function getLogPackage($index){ if($index<$this->getCount()){ return $this->logPackageList[$index]; } else{ throw new OutOfBoundsException('Index must less than size of logPackageList'); } } public function getLogGroupList(){ return $this->logPackageList; } public function getLogGroup($index){ if($index<$this->getCount()){ return $this->logPackageList[$index]; } else{ throw new OutOfBoundsException('Index must less than size of logPackageList'); } } }