mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 08:43:13 +08:00
Create REST action to delete short URL visits
This commit is contained in:
17
module/Core/src/Model/BulkDeleteResult.php
Normal file
17
module/Core/src/Model/BulkDeleteResult.php
Normal 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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user