From 16f4d9f4e51c2c16c8d98952a025a2ce9c5096e3 Mon Sep 17 00:00:00 2001 From: jiaweipan <1028244674@qq.com> Date: Wed, 2 Aug 2023 15:53:05 +0800 Subject: [PATCH] update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 55626d2..7ecf295 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,13 @@ After state machine builder was created, we can use fluent API to define state/t ->perform($this->doAction()); ``` - An **internal transition** with priority set to high is build inside state 'A' on event 'WithinA' perform 'myAction'. The internal transition means after transition complete, no state is exited or entered. The transition priority is used to override original transition when state machine extended. + An **internal transition** with priority set to high is build inside state 'A' on event 'INTERNAL_EVENT' perform '$this->doAction()'. The internal transition means after transition complete, no state is exited or entered. The transition priority is used to override original transition when state machine extended. ```php $builder->externalTransition() - ->from(self::STATE1) - ->to(self::STATE2) - ->on(self::EVENT1) + ->from(self::STATEC) + ->to(self::STATED) + ->on(self::EVENTGoToD) ->when( new class () implements ConditionInterface { public function isSatisfied($context): bool