From ace46b17f2d1e3f4d9dde0d38d5131654589180f Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 8 Jul 2013 12:41:14 +0200 Subject: adding a missing feature in PHP OOP --- php.html.markdown | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php.html.markdown') diff --git a/php.html.markdown b/php.html.markdown index a20e1d11..22c410d1 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -1,7 +1,8 @@ --- language: php contributors: - - ["Malcolm Fell", "http://emarref.net/"] +- [Malcolm Fell](http://emarref.net/) +- [Trismegiste](https://github.com/Trismegiste) filename: learnphp.php --- @@ -526,6 +527,12 @@ interface InterfaceTwo public function doSomethingElse(); } +// interfaces can be extended +interface InterfaceThree extends InterfaceTwo +{ + public function doAnotherContract(); +} + abstract class MyAbstractClass implements InterfaceOne { public $x = 'doSomething'; -- cgit v1.2.3