PaginatedResult.php 659 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Braintree;
  3. class PaginatedResult
  4. {
  5. private $_totalItems;
  6. private $_pageSize;
  7. private $_currentPage;
  8. public function __construct($totalItems, $pageSize, $currentPage)
  9. {
  10. $this->_totalItems = $totalItems;
  11. $this->_pageSize = $pageSize;
  12. $this->_currentPage = $currentPage;
  13. }
  14. public function getTotalItems()
  15. {
  16. return $this->_totalItems;
  17. }
  18. public function getPageSize()
  19. {
  20. return $this->_pageSize;
  21. }
  22. public function getCurrentPage()
  23. {
  24. return $this->_currentPage;
  25. }
  26. }
  27. class_alias('Braintree\PaginatedResult', 'Braintree_PaginatedResult');