diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Amazon/SimpleDb/Page.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Amazon/SimpleDb/Page.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,97 @@ +_data = $data; + $this->_token = $token; + } + + /** + * Retrieve page data + * + * @return string + */ + public function getData() + { + return $this->_data; + } + + /** + * Retrieve token + * + * @return string|null + */ + public function getToken() + { + return $this->_token; + } + + /** + * Determine whether this is the last page of data + * + * @return void + */ + public function isLast() + { + return (null === $this->_token); + } + + /** + * Cast to string + * + * @return string + */ + public function __toString() + { + return "Page with token: " . $this->_token + . "\n and data: " . $this->_data; + } +}