Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweipan committed Aug 2, 2023
1 parent ed51920 commit 16f4d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f4d9f

Please sign in to comment.