Files
Mangarr/src/Event/PageScrappingProgressEvent.php
jerem f7bb7b9148 Added:
- activity on menu
- starting activity page
2024-06-17 22:36:37 +02:00

37 lines
736 B
PHP

<?php
namespace App\Event;
use Symfony\Contracts\EventDispatcher\Event;
class PageScrappingProgressEvent extends Event
{
public const NAME = 'page.scrapping.progress';
private int $chapterId;
private int $pageIndex;
private int $totalPages;
public function __construct(int $chapterId, int $pageIndex, int $totalPages)
{
$this->chapterId = $chapterId;
$this->pageIndex = $pageIndex;
$this->totalPages = $totalPages;
}
public function getChapterId(): int
{
return $this->chapterId;
}
public function getPageIndex(): int
{
return $this->pageIndex;
}
public function getTotalPages(): int
{
return $this->totalPages;
}
}