blob: 7870614b4422f750ef5cb1ccb9071726bb5fa835 [file] [log] [blame]
<?php
namespace BaclucEventPackage;
use BaclucC5Crud\Entity\TableViewEntrySupplier;
class EventCancellationsTableEntrySupplier implements TableViewEntrySupplier
{
/**
* @var int
*/
private $eventId;
/**
* @var CancellationsRepository
*/
private $cancellationsRepository;
public function __construct(int $eventId, CancellationsRepository $cancellationsRepository)
{
$this->eventId = $eventId;
$this->cancellationsRepository = $cancellationsRepository;
}
public function getEntries()
{
return $this->cancellationsRepository->getCancellationsOfEvent($this->eventId);
}
public function count()
{
return $this->cancellationsRepository->countCancellationsOfEvent($this->eventId);
}
}