SplObserver::update
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Receive update from subject
Description
SplObserver::update(SplSubject $subject): void
This method is called when any SplSubject to which the observer is attached calls SplSubject::notify.
Func
Parameters
subjectThe
SplSubjectnotifying the observer of an update.
Return Values
Void