Skip to content

Instantly share code, notes, and snippets.

@shindakioku
Created July 22, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shindakioku/88fceb2162c5ab50b9f6fee9138cce3e to your computer and use it in GitHub Desktop.
Save shindakioku/88fceb2162c5ab50b9f6fee9138cce3e to your computer and use it in GitHub Desktop.
interface Foo {
public function foo();
}
class Foo1 {
public function foo() {// write to db}
}
class Foo2 {
public function foo() { // write to file}
}
someFunc(Foo $foo) {
$foo->foo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment