Skip to content

Instantly share code, notes, and snippets.

@jtreminio
Created August 26, 2013 17:33
Show Gist options
  • Save jtreminio/6344186 to your computer and use it in GitHub Desktop.
Save jtreminio/6344186 to your computer and use it in GitHub Desktop.
<?php
interface Baz
{
public function BazBaz();
}
=========
interface Bar extends Baz
{
}
=========
class Dingo implements Bar
{
public function BazBaz() {
return true;
}
}
=============
class Foo
{
public function FooFoo(Baz $baz)
{
}
}
=========
$ding = new Foo;
$ding->FooFoo(new Dingo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment