mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
18 lines
305 B
PHP
18 lines
305 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Model;
|
|
|
|
final class BulkDeleteResult
|
|
{
|
|
public function __construct(public readonly int $affectedItems)
|
|
{
|
|
}
|
|
|
|
public function toArray(string $fieldName): array
|
|
{
|
|
return [$fieldName => $this->affectedItems];
|
|
}
|
|
}
|