/**
* @see MetaborStd\Statemachine.StateInterface::getEvent()
*/
public function getEvent($name)
{
if ($this->events->has($name)) {
$event = $this->events->get($name);
} else {
$event = new Event($name);
$this->events->add($event);
}
return $event;
}