SplObserver::update

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

SplObserver::updateReceive update from subject

說明

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

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

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

subject

The SplSubject notifying the observer of an update.

返回值

沒有返回值。