The SplObserver interface

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

Introduction

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

Interface synopsis

interfaceSplObserver {
publicupdate(SplSubject$subject): void
}

Table of Contents

To Top