Skip to content

Instantly share code, notes, and snippets.

@omnicolor
Created March 11, 2012 15:04
Show Gist options
  • Save omnicolor/2016757 to your computer and use it in GitHub Desktop.
Save omnicolor/2016757 to your computer and use it in GitHub Desktop.
Class that uses static code.
class Foo {
public function addAndSquare($bar, $baz) {
$tmp = Calculator::add($bar, $baz);
return Calculator::multiply($tmp, $tmp);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment