Exemplo n.º 1
0
 public function update(AbstractSubject $subject)
 {
     writeln('*IN PATTERN OBSERVER - NEW PATTERN GOSSIP ALERT*');
     writeln(' new favorite patterns: ' . $subject->getFavorites());
     writeln('*IN PATTERN OBSERVER - PATTERN GOSSIP ALERT OVER*');
 }
Exemplo n.º 2
0
 public function update(AbstractSubject $subject)
 {
     echo BR . BR;
     echo '*IN PATTERN OBSERVER - NEW PATTERN GOSSIP ALERT*' . BR;
     echo ' new favorite patterns: ' . $subject->getFavorites() . BR;
     echo '*IN PATTERN OBSERVER - PATTERN GOSSIP ALERT OVER*' . BR;
 }