Skip to content

Instantly share code, notes, and snippets.

@EnragedSuccubus
Created January 5, 2016 03:41
Show Gist options
  • Save EnragedSuccubus/1216b6ac9d18d2cbdddb to your computer and use it in GitHub Desktop.
Save EnragedSuccubus/1216b6ac9d18d2cbdddb to your computer and use it in GitHub Desktop.
PHP Interfaces ex01
/**
* Automobile interface
*
* Creates a contract that any class implementing this interface must abide by
*/
interface Automobile {
/**
* steering_wheel function
*
* @access public
* @return void
*/
public function steering_wheel() {}
/**
* wheels function
*
* @access public
* @return void
*/
public function wheels() {}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment