Skip to content

Instantly share code, notes, and snippets.

@ericmann
Created April 17, 2013 16:47
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 ericmann/5405878 to your computer and use it in GitHub Desktop.
Save ericmann/5405878 to your computer and use it in GitHub Desktop.
<?php
// Interface
inferface ArchiveElement {
public function do_something();
}
class TC_Video implements ArchiveElement {
public function do_something() {
// does something
}
}
// Abstract
abstract class ArchiveElement {
abstract public function do_something();
protected function do_something_else() {
// ... do something else
}
}
class TC_Video extends ArchiveElement {
public function do_something() {
// does something
$this->do_something_else();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment