From 9911f206869faafddda98b4d290486490e007cf2 Mon Sep 17 00:00:00 2001 From: Paul Le Corre Date: Thu, 22 Mar 2018 15:44:43 +0100 Subject: [PATCH] Revert "Merge pull request #176 from garak/fix-interface" This reverts commit 8ac9e192b2ba209b9f4190a92a5d3587f78f8700, reversing changes made to ee55eb14c05e65a10eb10630e4dbf5945bf54f01. --- src/Knp/Component/Pager/Pagination/AbstractPagination.php | 4 +++- src/Knp/Component/Pager/Pagination/PaginationInterface.php | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Knp/Component/Pager/Pagination/AbstractPagination.php b/src/Knp/Component/Pager/Pagination/AbstractPagination.php index fe94ca21..aeba96a9 100644 --- a/src/Knp/Component/Pager/Pagination/AbstractPagination.php +++ b/src/Knp/Component/Pager/Pagination/AbstractPagination.php @@ -2,7 +2,9 @@ namespace Knp\Component\Pager\Pagination; -abstract class AbstractPagination implements PaginationInterface +use Countable, Iterator, ArrayAccess; + +abstract class AbstractPagination implements PaginationInterface, Countable, Iterator, ArrayAccess { protected $currentPageNumber; protected $numItemsPerPage; diff --git a/src/Knp/Component/Pager/Pagination/PaginationInterface.php b/src/Knp/Component/Pager/Pagination/PaginationInterface.php index c3f6b520..1a43679e 100644 --- a/src/Knp/Component/Pager/Pagination/PaginationInterface.php +++ b/src/Knp/Component/Pager/Pagination/PaginationInterface.php @@ -2,14 +2,12 @@ namespace Knp\Component\Pager\Pagination; -use Countable, Iterator, ArrayAccess; - /** * Pagination interface strictly defines * the methods - paginator will use to populate the * pagination data */ -interface PaginationInterface extends Countable, Iterator, ArrayAccess +interface PaginationInterface { /** * @param integer $pageNumber