interface SplObserver (View source)

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

Methods

void
update(SplSubject $subject)

Receive update from subject

Details

void update(SplSubject $subject)

Receive update from subject

Parameters

SplSubject $subject

The SplSubject notifying the observer of an update.

Return Value

void