As we can see, the class now implements both the oopTemplate and anotherTemplate and has fully implemented the required methods in both interfaces. Notice that the anotherTemplate interface also has a method signature named methodOne, just like the oopTemplate interface.
from My Pocket http://www.phpclasses.org/blog/post/300-Using-PHP-Object-Interfaces.html
No comments:
Post a Comment