You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
436 B
31 lines
436 B
4 years ago
|
<?php
|
||
|
// Declare the interface 'iTemplate'
|
||
|
interface iTemplate
|
||
|
{
|
||
|
public function setVariable($name, $var);
|
||
|
public function
|
||
|
getHtml($template);
|
||
|
}
|
||
|
|
||
|
interface a
|
||
|
{
|
||
|
public function foo();
|
||
|
}
|
||
|
|
||
|
interface b extends a
|
||
|
{
|
||
|
public function baz(Baz $baz);
|
||
|
}
|
||
|
|
||
|
// short desc for class that implement a unique interface
|
||
|
class c implements b
|
||
|
{
|
||
|
public function foo()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function baz(Baz $baz)
|
||
|
{
|
||
|
}
|
||
|
}
|