Method | Description | |
---|---|---|
changeName ( $newName ) | ||
name ( ) : string | ||
nameNew ( string $username ) : |
ARs should be created via static factory methods | |
userId ( ) : Rhumsaa\Uuid\Uuid |
Method | Description | |
---|---|---|
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 | ||
return | string | representation of the unique identifier of the aggregate root |
protected whenUserWasCreated ( |
||
$event |
protected whenUserWasRenamed ( |
||
$event |