- activity on menu
- starting activity page
This commit is contained in:
2024-06-17 22:36:37 +02:00
parent 671551c7f8
commit f7bb7b9148
14 changed files with 524 additions and 33 deletions

View File

@@ -0,0 +1,36 @@
<?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;
}
}