Create REST action to delete short URL visits

This commit is contained in:
Alejandro Celaya
2023-05-14 12:00:08 +02:00
parent 2573c2bf98
commit 84a7981dfa
9 changed files with 132 additions and 0 deletions

View File

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