Skip to content

Instantly share code, notes, and snippets.

@mitchellvanw
Created March 29, 2017 11:54
Show Gist options
  • Save mitchellvanw/7e7ada0fa299802b15b39c3601be85b7 to your computer and use it in GitHub Desktop.
Save mitchellvanw/7e7ada0fa299802b15b39c3601be85b7 to your computer and use it in GitHub Desktop.
<?php
interface Command {}
interface CommandHandler {
public function handle(Command $c);
}
class Register implements Command {
public function fullName() {
return 'Frank';
}
}
class HandleRegister implements CommandHandler {
public function handle(Register $c) {
// do stuff..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment