The SplObserver interface

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

简介

The SplObserver interface is used alongside SplSubject to implement the Observer Design Pattern.

接口摘要

interface SplObserver {
/* 方法 */
public update(SplSubject $subject): void
}

目录

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top