1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

Merge pull request #112 from Trismegiste/master

Interface can be extended
This commit is contained in:
Adam Bard
2013-07-08 12:41:38 -07:00

View File

@@ -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';