SplObserver::update

(PHP 5 >= 5.1.0, PHP 7)

SplObserver::updateReceive update from subject

说锟斤拷

abstract public SplObserver::update ( SplSubject $subject ) : void

This method is called when any SplSubject to which the observer is attached calls SplSubject::notify().

Warning

锟斤拷锟斤拷锟斤拷锟斤拷未锟斤拷写锟侥碉拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟叫憋拷

锟斤拷锟斤拷

subject

The SplSubject notifying the observer of an update.

锟斤拷锟斤拷值

没锟叫凤拷锟斤拷值锟斤拷