StateChangeEvent Class Reference
Detailed Description
StateChangeEvent signals a change of the state of a PersistentObject instance.
Definition at line 22 of file StateChangeEvent.php.

Public Member Functions | |
__construct (PersistentObject $object, $oldValue, $newValue) | |
getObject () | |
getOldValue () | |
getNewValue () | |
![]() | |
stopPropagation () | |
isStopped () | |
Public Attributes | |
const | NAME = __CLASS__ |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | PersistentObject | $object, |
$oldValue, | |||
$newValue | |||
) |
Constructor.
- Parameters
-
$object PersistentObject instance $oldValue The old value of the state. $newValue The new value of the state.
Definition at line 36 of file StateChangeEvent.php.
Member Function Documentation
◆ getObject()
getObject | ( | ) |
Get the object whose state has changed.
- Returns
- PersistentObject instance
Definition at line 46 of file StateChangeEvent.php.
◆ getOldValue()
getOldValue | ( | ) |
◆ getNewValue()
getNewValue | ( | ) |
Member Data Documentation
◆ NAME
const NAME = __CLASS__ |
Definition at line 24 of file StateChangeEvent.php.