1 | <?php |
||
19 | class ArchivedProviderPagerFanta extends AbstractProviderPagerFanta implements ArchivedProviderPagerFantaInterface |
||
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 | * Constructor. |
||
37 | * |
||
38 | * @param ThreadRepositoryInterface $threadRepository A thread repository instance |
||
39 | * @param integer $itemsPerPage Total items per page |
||
40 | */ |
||
41 | public function __construct(ThreadRepositoryInterface $threadRepository, $itemsPerPage = 15) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getArchivedThreadsPagerfanta(ParticipantInterface $participant, $currentPage) |
||
56 | } |
||
57 |