PHP 클래스 My\Model\User

상속: extends Prooph\EventSourcing\AggregateRoot
파일 보기 프로젝트 열기: prooph/event-sourcing 1 사용 예제들

공개 메소드들

메소드 설명
changeName ( $newName )
name ( ) : string
nameNew ( string $username ) : User 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 ( UserWasCreated $event ) Each applied event needs a corresponding handler method.
whenUserWasRenamed ( UserWasRenamed $event )

메소드 상세

aggregateId() 보호된 메소드

Every AR needs a hidden method that returns the identifier of the AR as a string
protected aggregateId ( ) : string
리턴 string representation of the unique identifier of the aggregate root

changeName() 공개 메소드

public changeName ( $newName )
$newName

name() 공개 메소드

public name ( ) : string
리턴 string

nameNew() 공개 정적인 메소드

ARs should be created via static factory methods
public static nameNew ( string $username ) : User
$username string
리턴 User

userId() 공개 메소드

public userId ( ) : Rhumsaa\Uuid\Uuid
리턴 Rhumsaa\Uuid\Uuid

whenUserWasCreated() 보호된 메소드

The naming convention is: when[:ShortEventName]
protected whenUserWasCreated ( UserWasCreated $event )
$event UserWasCreated

whenUserWasRenamed() 보호된 메소드

protected whenUserWasRenamed ( UserWasRenamed $event )
$event UserWasRenamed