ValueChangeEvent Class Reference

Detailed Description

ValueChangeEvent signals a change of a value of a PersistentObject instance.

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

Definition at line 22 of file ValueChangeEvent.php.

+ Inheritance diagram for ValueChangeEvent:

Public Member Functions

 __construct (PersistentObject $object, $name, $oldValue, $newValue)
 
 getObject ()
 
 getValueName ()
 
 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 which value has changed.
$nameThe name of the item that has changed.
$oldValueThe old value of the item that has changed.
$newValueThe new value of the item that has changed.

Definition at line 38 of file ValueChangeEvent.php.

Member Function Documentation

◆ getObject()

getObject ( )

Get the object whose value has changed.

Returns
PersistentObject instance

Definition at line 49 of file ValueChangeEvent.php.

◆ getValueName()

getValueName ( )

Get the name of the value that has changed.

Returns
String

Definition at line 57 of file ValueChangeEvent.php.

◆ getOldValue()

getOldValue ( )

Get the old value.

Returns
Mixed

Definition at line 65 of file ValueChangeEvent.php.

◆ getNewValue()

getNewValue ( )

Get the new value.

Returns
Mixed

Definition at line 73 of file ValueChangeEvent.php.

Member Data Documentation

◆ NAME

const NAME = __CLASS__

Definition at line 24 of file ValueChangeEvent.php.