for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Symnedi\EventDispatcher\Tests\NetteEvent;
use Symfony\Component\EventDispatcher\Event;
class EventStateStorage
{
/**
* @var string[]
*/
private $storage;
* @param string $event
* @param Event $state
public function addEventState($event, Event $state)
$this->storage[$event] = $state;
}
* @return Event
public function getEventState($event)
if (isset($this->storage[$event])) {
return $this->storage[$event];
return FALSE;