mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
38 lines
827 B
PHP
38 lines
827 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;
|
|
|
|
public function __construct(RecordInterface $record, $subdefName, $workerMessage = '', $count = 2)
|
|
{
|
|
parent::__construct($record);
|
|
|
|
$this->subdefName = $subdefName;
|
|
$this->workerMessage = $workerMessage;
|
|
$this->count = $count;
|
|
}
|
|
|
|
public function getSubdefName()
|
|
{
|
|
return $this->subdefName;
|
|
}
|
|
|
|
public function getWorkerMessage()
|
|
{
|
|
return $this->workerMessage;
|
|
}
|
|
|
|
public function getCount()
|
|
{
|
|
return $this->count;
|
|
}
|
|
}
|