public function transition($event): void
    {
        $this->apply($event, self::HANDLE_PREFIX);

        $this->version++;
    }
public function transition($event): void
    {
        $this->apply($event, self::HANDLE_PREFIX);

        $this->version++;
    }
public function transition ( $ event ) : void { $ this -> apply ( $ event , self :: HANDLE_PREFIX ) ; $ this -> version ++ ; }
Transition saga to new state

Store event data internally and
try to call corresponding `when` method

@param object $event

@return void
@throws Exception\InvalidEvent
@throws Exception\UndefinedTransition
Transition saga to new state