The SplSubject interface

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

Introduction

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

Interface synopsis

interfaceSplSubject {
publicattach(SplObserver$observer): void
publicdetach(SplObserver$observer): void
publicnotify(): void
}

Table of Contents

To Top