1 | <?php |
||
19 | class InboxProviderPagerFanta extends AbstractProviderPagerFanta implements InboxProviderPagerFantaInterface |
||
20 | { |
||
21 | /** |
||
22 | * A thread repository instance. |
||
23 | * |
||
24 | * @var ThreadRepositoryInterface |
||
25 | */ |
||
26 | protected $threadRepository; |
||
27 | |||
28 | /** |
||
29 | * How many items we show per page |
||
30 | * |
||
31 | * @var integer |
||
32 | */ |
||
33 | protected $itemsPerPage; |
||
34 | |||
35 | /** |
||
36 | * @param ThreadRepositoryInterface $threadRepository A thread repository instance |
||
37 | * @param integer $itemsPerPage Total items per page |
||
38 | */ |
||
39 | public function __construct(ThreadRepositoryInterface $threadRepository, $itemsPerPage = 15) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getInboxThreadsPagerfanta(ParticipantInterface $participant, $currentPage) |
||
54 | } |
||
55 |