i wonder where one can find template interfaces.
eg. i am creating these classes that implements iLog:
DatabaseLog
ScreenLog
FileLog
i wonder what methods should a typical Log class have?
is there a set of interfaces you could just implement/learn from rather than reinvent the wheel and have to think about the method names.
eg. Interfaces:
iLog
iDatabase
iErrorMessage
etc.
Thanks
PHP defines the following interfaces (should, but may not be complete):
See
As for your Logger Interface, I'd say it should have a method log($message, level)
and nothing else.