Метод | Описание | |
---|---|---|
changeName ( $newName ) | ||
name ( ) : string | ||
nameNew ( string $username ) : |
ARs should be created via static factory methods | |
userId ( ) : Rhumsaa\Uuid\Uuid |
Метод | Описание | |
---|---|---|
aggregateId ( ) : string | Every AR needs a hidden method that returns the identifier of the AR as a string | |
whenUserWasCreated ( |
Each applied event needs a corresponding handler method. | |
whenUserWasRenamed ( |
protected aggregateId ( ) : string | ||
Результат | string | representation of the unique identifier of the aggregate root |
protected whenUserWasCreated ( |
||
$event |
protected whenUserWasRenamed ( |
||
$event |