Paginator may be ready for QueryInterface

This commit is contained in:
Thomas Gelf 2013-08-21 01:07:01 +02:00 committed by Eric Lippmann
parent c75a83d1d2
commit c9ce7c53b0
1 changed files with 4 additions and 4 deletions

View File

@ -28,11 +28,13 @@
namespace Icinga\Web\Paginator\Adapter;
use Zend_Paginator_Adapter_Interface;
/**
* @see Zend_Paginator_Adapter_Interface
*/
class QueryAdapter implements \Zend_Paginator_Adapter_Interface
class QueryAdapter implements Zend_Paginator_Adapter_Interface
{
/**
* Array
@ -53,9 +55,7 @@ class QueryAdapter implements \Zend_Paginator_Adapter_Interface
*
* @param array $query Query to paginate
*/
// TODO: Re-add abstract Query type as soon as a more generic one
// is available. Should fit Protocol-Queries too.
// public function __construct(\Icinga\Backend\Query $query)
// TODO: This might be ready for (QueryInterface $query)
public function __construct($query)
{
$this->query = $query;