PHP 클래스 Prooph\EventSourcing\AggregateChanged

저자: Alexander Miertsch ([email protected])
상속: extends Prooph\Common\Messaging\DomainEvent
파일 보기 프로젝트 열기: prooph/event-sourcing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$payload array

공개 메소드들

메소드 설명
aggregateId ( ) : string
occur ( string $aggregateId, array $payload = [] ) : static
payload ( ) : array Return message payload as array

보호된 메소드들

메소드 설명
__construct ( string $aggregateId, array $payload, array $metadata = [] )
setAggregateId ( string $aggregateId )
setPayload ( array $payload ) : void This method is called when message is instantiated named constructor fromArray

메소드 상세

__construct() 보호된 메소드

protected __construct ( string $aggregateId, array $payload, array $metadata = [] )
$aggregateId string
$payload array
$metadata array

aggregateId() 공개 메소드

public aggregateId ( ) : string
리턴 string

occur() 공개 정적인 메소드

public static occur ( string $aggregateId, array $payload = [] ) : static
$aggregateId string
$payload array
리턴 static

payload() 공개 메소드

The payload should only contain scalar types and sub arrays. The payload is normally passed to json_encode to persist the message or push it into a message queue.
public payload ( ) : array
리턴 array

setAggregateId() 보호된 메소드

protected setAggregateId ( string $aggregateId )
$aggregateId string

setPayload() 보호된 메소드

This method is called when message is instantiated named constructor fromArray
protected setPayload ( array $payload ) : void
$payload array
리턴 void

프로퍼티 상세

$payload 보호되어 있는 프로퍼티

protected array $payload
리턴 array