mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-22 22:55:00 +00:00
29 lines
519 B
PHP
29 lines
519 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Serializer\Model;
|
|
|
|
use Chill\MainBundle\Pagination\PaginatorInterface;
|
|
|
|
class Collection
|
|
{
|
|
private PaginatorInterface $paginator;
|
|
|
|
private $items;
|
|
|
|
public function __construct($items, PaginatorInterface $paginator)
|
|
{
|
|
$this->items = $items;
|
|
$this->paginator = $paginator;
|
|
}
|
|
|
|
public function getPaginator(): PaginatorInterface
|
|
{
|
|
return $this->paginator;
|
|
}
|
|
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
}
|