PropertyChangeEvent Class Reference

Detailed Description

PropertyChangeEvent signals a change of a property of a PersistentObject instance.

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

Definition at line 22 of file PropertyChangeEvent.php.

+ Inheritance diagram for PropertyChangeEvent:

Public Member Functions

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

Public Attributes

const NAME = __CLASS__
 

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
$objectPersistentObject instance that whose property has changed.
$nameThe name of the property that has changed.
$oldValueThe old value of the property that has changed.
$newValueThe new value of the property that has changed.

Definition at line 38 of file PropertyChangeEvent.php.

Member Function Documentation

◆ getObject()

getObject ( )

Get the object whose property has changed.

Returns
PersistentObject instance

Definition at line 49 of file PropertyChangeEvent.php.

◆ getPropertyName()

getPropertyName ( )

Get the name of the property that has changed.

Returns
String

Definition at line 57 of file PropertyChangeEvent.php.

◆ getOldValue()

getOldValue ( )

Get the old value.

Returns
Mixed

Definition at line 65 of file PropertyChangeEvent.php.

◆ getNewValue()

getNewValue ( )

Get the new value.

Returns
Mixed

Definition at line 73 of file PropertyChangeEvent.php.

Member Data Documentation

◆ NAME

const NAME = __CLASS__

Definition at line 24 of file PropertyChangeEvent.php.