for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JobQueue\Domain\Task;
use Symfony\Component\EventDispatcher\Event;
final class TaskHasFailed extends Event
{
const NAME = 'task.failed';
/**
*
* @var Task
*/
private $task;
* @param Task $task
public function __construct(Task $task)
$this->task = $task;
}
* @return Task
public function getTask(): Task
return $this->task;