e04957de5e
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
31 lines
615 B
PHP
31 lines
615 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXM\PeopleManager\Import;
|
|
|
|
use KTXM\PeopleManager\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];
|
|
}
|
|
}
|