Arquivos
hhvm/hphp/system/php/spl/interfaces/SplObserver.php
T
Markus Staab efc12df155 add SplObserver and SplSubject interfaces
- add SplObserver and SplSubject interfaces

Closes #953
Closes #960

Differential Revision: D931324
2013-08-19 10:15:17 -07:00

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 );
}