30 lines
721 B
PHP
30 lines
721 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Message;
|
|
|
|
use App\MessageQueue\QueueNames;
|
|
|
|
final class ReprocessMediaMessage extends AbstractUniqueMessage
|
|
{
|
|
/** @var int The numeric identifier for the StorageLocation entity. */
|
|
public int $storage_location_id;
|
|
|
|
/** @var int The numeric identifier for the StationMedia record being processed. */
|
|
public int $media_id;
|
|
|
|
/** @var bool Whether to force reprocessing even if checks indicate it is not necessary. */
|
|
public bool $force = false;
|
|
|
|
public function getIdentifier(): string
|
|
{
|
|
return 'ReprocessMediaMessage_' . $this->media_id;
|
|
}
|
|
|
|
public function getQueue(): QueueNames
|
|
{
|
|
return QueueNames::Media;
|
|
}
|
|
}
|