메소드 | 설명 | |
---|---|---|
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 |