summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-07-08 12:41:38 -0700
committerAdam Bard <github@adambard.com>2013-07-08 12:41:38 -0700
commit0fb7f0077e4be02b6bdf1c301c91adbd1cf08801 (patch)
tree4ebab8dac004fd8e8e4e0737550b7048bd92f63c /php.html.markdown
parentf698fb6fbbb3d79f54e863eeaded108fcfc084ee (diff)
parentace46b17f2d1e3f4d9dde0d38d5131654589180f (diff)
Merge pull request #112 from Trismegiste/master
Interface can be extended
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown9
1 files changed, 8 insertions, 1 deletions
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';