The SplSubject interface

(PHP 5 >= 5.1.0, PHP 7)

Giriş

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

Arayüz Sözdizimi

SplSubject {
/* Yöntemler */
abstract public attach ( SplObserver $observer ) : void
abstract public detach ( SplObserver $observer ) : void
abstract public notify ( void ) : void
}

İçindekiler