for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Itkg\DelayEventBundle\Model;
use Symfony\Component\EventDispatcher\Event as BaseEvent;
/**
* Class Event
*/
class Event extends BaseEvent
{
const DEFAULT_GROUP_IDENTIFIER = 'default_group_identifier';
* @var string
protected $originalName;
* @var bool
protected $delayed = true;
protected $failed = false;
* @var int
protected $tryCount = 0;
protected $groupFieldIdentifier;
* @param bool $delayed
public function __construct($delayed = true)
$this->delayed = $delayed;
}
* @return boolean
public function isDelayed()
return $this->delayed;
* @param boolean $delayed
*
* @return $this
public function setDelayed($delayed)
return $this;
* @return string
public function getOriginalName()
return $this->originalName;
* @param string $originalName
public function setOriginalName($originalName)
$this->originalName = $originalName;
* @return bool
public function isFailed()
return $this->failed;
* @param bool $failed
public function setFailed($failed)
$this->failed = $failed;
* @return int
public function getTryCount()
return $this->tryCount;
* @param int $tryCount
public function setTryCount($tryCount)
$this->tryCount = $tryCount;
* Increase try counter
public function increaseTryCount()
$this->tryCount ++;
public function getGroupFieldIdentifier()
return $this->groupFieldIdentifier;