Results 1 to 10 of 10
Threaded View
-
25th Jul 2010, 01:42 PM #7Member
Well, when you are declaring interfaces you should also specify parameters data type (in case its instance of another class, in case it is just a string or integer it doesnt matter)
PHP ignore it however interfaces are here generally for making extensions, modules and plugins into applications. This makes much easier understand application design.
PHP Code:interface IDatabaseAdapter
{
public function query(IDatabaseQuery $query);
}
Btw, you can also inherit interfaces
PHP Code:interface IAdapter
{
public function register();
}
interface IDatabaseAdapter extends IAdapter
{
public function query(IDatabaseQuery $query);
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...