WriteAggregateCompletedEvent

Extends \Ascmvc\EventSourcing\Event\AggregateEvent

Class WriteAggregateCompletedEvent

package

Ascmvc\EventSourcing\Event

Methods

AggregateEvent constructor.

__construct(\Ascmvc\EventSourcing\AggregateImmutableValueObject $aggregateValueObject, null $rootAggregateName = null, null $name = null, null $target = null, null $params = null) 
inherited

Arguments

$rootAggregateName

null

$name

null

$target

null

$params

null

Gets the event's immutable value object.

getAggregateValueObject() : \Ascmvc\EventSourcing\AggregateImmutableValueObject
inherited

Returns the instance of the application.

getApplication() : \Ascmvc\AbstractApp
inherited

Gets the event type.

getEventType() : integer
inherited

Response

integer

Gets the name of the root aggregate that created the event.

getRootAggregateName() : null|string
inherited

Response

null|string

Propagation is never stopped.

propagationIsStopped() : boolean
inherited

Response

boolean

Sets the event's immutable value object.

setAggregateValueObject(\Ascmvc\EventSourcing\AggregateImmutableValueObject $aggregateValueObject) : \Ascmvc\EventSourcing\Event\AggregateEvent
inherited

Stores the instance of the application.

setApplication(\Ascmvc\AbstractApp &$application) : \Ascmvc\AbstractApp
inherited

Arguments

$application

\Ascmvc\AbstractApp

Response

\Ascmvc\AbstractApp

Event propagation is not stoppable.

stopPropagation(boolean $flag = true) : boolean
inherited

Arguments

$flag

boolean

Response

boolean

Constants

Type of event.

TYPE
inherited

1: Regular event 4: Read event 6: Write event

Properties

Contains an instance of AggregateImmutableValueObject.

aggregateValueObject : \Ascmvc\EventSourcing\AggregateImmutableValueObject
inherited

Contains the name of the bounded context (event sourcing aggregate).

rootAggregateName : null|string
inherited
var

Type(s)

null|string

The instance of the application.

application : \Ascmvc\AbstractApp
inherited
var

Type(s)

\Ascmvc\AbstractApp