StateChangeEvent Class Reference

Detailed Description

StateChangeEvent signals a change of the state of a PersistentObject instance.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 22 of file StateChangeEvent.php.

+ Inheritance diagram for StateChangeEvent:

Public Member Functions

 __construct (PersistentObject $object, $oldValue, $newValue)
 
 getObject ()
 
 getOldValue ()
 
 getNewValue ()
 
- Public Member Functions inherited from Event
 stopPropagation ()
 
 isStopped ()
 

Public Attributes

const NAME = __CLASS__
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( PersistentObject  $object,
  $oldValue,
  $newValue 
)

Constructor.

Parameters
$objectPersistentObject instance
$oldValueThe old value of the state.
$newValueThe 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 ( )

Get the old value.

Returns
Mixed

Definition at line 54 of file StateChangeEvent.php.

◆ getNewValue()

getNewValue ( )

Get the new value.

Returns
Mixed

Definition at line 62 of file StateChangeEvent.php.

Member Data Documentation

◆ NAME

const NAME = __CLASS__

Definition at line 24 of file StateChangeEvent.php.