Skip to content

Commit c3a79b5

Browse files
committed
- MFH: Synch dosu
1 parent 8acd34d commit c3a79b5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ext/spl/spl.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@
113113
*
114114
* Talks on SPL:
115115
* - SPL for the masses <a href="http://somabo.de/talks/200504_php_quebec_spl_for_the_masses.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_spl_for_the_masses.pdf">[pdf]</a>
116-
* - Debug session 1 <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_1.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_1.pdf">[pdf]</a>
117-
* - Debug session 2 <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_2.pps">[pps]</a>, <a href="http://somabo.de/talks/200504_php_quebec_iterator_debug_session_2.pdf">[pdf]</a>
118116
* - From engine overloading to SPL <a href="http://somabo.de/talks/200505_cancun_from_engine_overloading_to_spl.pps">[pps]</a>, <a href="http://somabo.de/talks/200505_cancun_from_engine_overloading_to_spl.pdf">[pdf]</a>
117+
* - Happy SPLing <a href="http://somabo.de/talks/200509_toronto_happy_spling.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_happy_spling.pdf">[pdf]</a>
118+
* - Debug session 1 <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_1.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_1.pdf">[pdf]</a>
119+
* - Debug session 2 <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_2.pps">[pps]</a>, <a href="http://somabo.de/talks/200509_toronto_iterator_debug_session_2.pdf">[pdf]</a>
119120
*
120121
* You can download this documentation as a chm file
121122
* <a href="http://php.net/~helly/php/ext/spl/spl.chm">here</a>.
@@ -824,7 +825,7 @@ function getChildren();
824825
}
825826

826827
/** @ingroup SPL
827-
* @brief observer of the observer pattern
828+
* @brief Observer of the observer pattern
828829
* @since PHP 5.1
829830
*
830831
* For a detailed explanation see Observer pattern in
@@ -833,29 +834,29 @@ function getChildren();
833834
* Design Patterns
834835
* </em>
835836
*/
836-
interface Observer
837+
interface SplObserver
837838
{
838839
/** Called from the subject (i.e. when it's value has changed).
839840
* @param $subject the callee
840841
*/
841-
function update(Subject $subject);
842+
function update(SplSubject $subject);
842843
}
843844

844845
/** @ingroup SPL
845-
* @brief ubject to the observer pattern
846+
* @brief Subject to the observer pattern
846847
* @since PHP 5.1
847848
* @see Observer
848849
*/
849-
interface Subject
850+
interface SplSubject
850851
{
851852
/** @param $observer new observer to attach
852853
*/
853-
function attach(Observer $observer);
854+
function attach(SplObserver $observer);
854855

855856
/** @param $observer existing observer to detach
856857
* @note a non attached observer shouldn't result in a warning or similar
857858
*/
858-
function detach(Observer $observer);
859+
function detach(SplObserver $observer);
859860

860861
/** Notify all observers
861862
*/

0 commit comments

Comments
 (0)