The SplObserver interface

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

Introduzione

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

Sommario dell'interfaccia

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

Indice dei contenuti