for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Workana\AsyncJobs;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
* @author Carlos Frutos <[email protected]>
*/
class AsyncEvent extends AsyncAction
{
* @var string $eventName
* @var SerializableEvent $event
public function __construct($eventName, SerializableEvent $event)
parent::__construct(EventDispatcherInterface::class, 'dispatch', [$eventName, $event]);
}
* @return string
public function getEventName()
return $this->parameters[0]->getValue();
* @return SerializableEvent
public function getEvent()
return $this->parameters[1]->getValue();
public function __toString()
return $this->getEventName();