Skip to content

Commit

Permalink
Merge pull request #11 from DDDPHP/'update-README-1'
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
jiaweipan authored Aug 2, 2023
2 parents ed51920 + 16f4d9f commit 5614509
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 5614509

Please sign in to comment.