Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5614509

Browse files
authored
Merge pull request#11 from DDDPHP/'update-README-1'
update README
2 parentsed51920 +16f4d9f commit5614509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ After state machine builder was created, we can use fluent API to define state/t
5252
->perform($this->doAction());
5353
```
5454

55-
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.
55+
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.
5656

5757
```php
5858
$builder->externalTransition()
59-
->from(self::STATE1)
60-
->to(self::STATE2)
61-
->on(self::EVENT1)
59+
->from(self::STATEC)
60+
->to(self::STATED)
61+
->on(self::EVENTGoToD)
6262
->when(
6363
new class () implements ConditionInterface {
6464
public function isSatisfied($context): bool

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp