(PHP 5 >= 5.1.0, PHP 7)
The SplObserver interface is used alongside SplSubject to implement the Observer Design Pattern.
SplObserver {
/* 方法 */
abstract public update ( SplSubject $subject ) : void
$subject
}
/* 方法 */