Php/docs/class.splsubject
From Get docs
(PHP 5 >= 5.1.0, PHP 7)
Introduction
The SplSubject interface is used alongside SplObserver to implement the Observer Design Pattern.
Interface synopsis
SplSubject {
abstract public attach
( SplObserver $observer
) : void
abstract public detach
( SplObserver $observer
) : void
abstract public notify ( ) : void
}
Table of Contents
- SplSubject::attach — Attach an SplObserver
- SplSubject::detach — Detach an observer
- SplSubject::notify — Notify an observer
/* Methods */