public function triggerEvent($event, Payload $payload): string
    {
        return $this->state($payload->state())->triggerEvent($event, $payload);
    }
public function triggerEvent($event, Payload $payload): string
    {
        return $this->state($payload->state())->triggerEvent($event, $payload);
    }
public function triggerEvent ( $ event , Payload $ payload ) : string { return $ this -> state ( $ payload -> state ( ) ) -> triggerEvent ( $ event , $ payload ) ; }
Trigger event for payload
Return next state name

@param string  $event
@param Payload $payload

@return string
Trigger event for payload Return next state name