efc12df155
- add SplObserver and SplSubject interfaces Closes #953 Closes #960 Differential Revision: D931324
26 linhas
806 B
PHP
26 linhas
806 B
PHP
<?php
|
|
|
|
// This doc comment block generated by idl/sysdoc.php
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/class.splobserver.php )
|
|
*
|
|
* The SplObserver interface is used alongside SplSubject to implement the
|
|
* Observer Design Pattern.
|
|
*
|
|
*/
|
|
interface SplObserver {
|
|
// This doc comment block generated by idl/sysdoc.php
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/splobserver.update.php )
|
|
*
|
|
* This method is called when any SplSubject to which the observer is
|
|
* attached calls SplSubject::notify(). Warning: This function is currently
|
|
* not documented; only its argument list is available.
|
|
*
|
|
* @subject mixed The SplSubject notifying the observer of an update.
|
|
*
|
|
* @return mixed No value is returned.
|
|
*/
|
|
public function update ( SplSubject $subject );
|
|
}
|