Files
Phraseanet/lib/Alchemy/Phrasea/WorkerManager/Event/SubdefinitionCreationFailureEvent.php
jygaulier f2f5db3df6 Refacto queues & workers
- define queues in one unique place
- fix some admin ux
- patch conf
2021-01-07 10:39:43 +01:00

45 lines
991 B
PHP

<?php
namespace Alchemy\Phrasea\WorkerManager\Event;
use Alchemy\Phrasea\Core\Event\Record\RecordEvent;
use Alchemy\Phrasea\Model\RecordInterface;
class SubdefinitionCreationFailureEvent extends RecordEvent
{
private $subdefName;
private $workerMessage;
private $count;
private $workerJobId;
public function __construct(RecordInterface $record, $subdefName, $workerMessage, $count, $workerJobId)
{
parent::__construct($record);
$this->subdefName = $subdefName;
$this->workerMessage = $workerMessage;
$this->count = $count;
$this->workerJobId = $workerJobId;
}
public function getSubdefName()
{
return $this->subdefName;
}
public function getWorkerMessage()
{
return $this->workerMessage;
}
public function getCount()
{
return $this->count;
}
public function getWorkerJobId()
{
return $this->workerJobId;
}
}