Avolutions\Event\EntityEvent
extends EventThe EntityEvent is used for all Events dispatched by an Entity.
Properties
| Property | Visibility | Type | Description |
|---|---|---|---|
| $Entity | public | \Avolutions\Orm\Entity | The Entity which dispatched the Event. |
| $EntityBeforeChange | public | ?\Avolutions\Orm\Entity | The Entity before the changes are made. |
| $name | protected | string | The name of the Event. |
Methods
| Method | Visibility | Description |
|---|---|---|
| __construct() | public | Creates a new EntityEvent object. |
| getName() | public | Returns the name of the Event. This is either the name of the class or if defined the value of the name property. |
Property Details
$EntityBeforeChange
The Entity before the changes are made.
public Entity|null $EntityBeforeChange = null