Files
Sebastian b7e12621cd feat: import
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-06-28 18:06:12 -04:00

26 lines
489 B
PHP

<?php
declare(strict_types=1);
namespace KTXM\ChronoManager\Import;
use KTXM\ChronoManager\Stream\ExpectedTotal;
final readonly class ImportCountEvent implements ImportEvent, ExpectedTotal {
public function __construct(
public int $total,
) {}
public function expectedTotal(): int {
return $this->total;
}
/**
* @return array{total: int}
*/
public function jsonSerialize(): array {
return ['total' => $this->total];
}
}