AdapterInterface.php 688 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ mo/7oMrc3y63RMhmKUWZCtZ02Sm9Zi2ybMChMip1thQ=
  5. *
  6. * @link http://codecu.be/framework
  7. * @copyright Copyright (c) 2014 CodeCube SRL
  8. * @license http://codecu.be/framework/license Commercial License
  9. *
  10. * @version 1.0
  11. */
  12. /**
  13. * paginator adapter interface
  14. */
  15. namespace Cube\Paginator\Adapter;
  16. interface AdapterInterface extends \Countable
  17. {
  18. /**
  19. *
  20. * returns an collection of items for a page
  21. *
  22. * @param integer $offset page offset
  23. * @param integer $itemCountPerPage number of items per page
  24. * @return array
  25. */
  26. public function getItems($offset, $itemCountPerPage);
  27. }