Skip to content

Instantly share code, notes, and snippets.

@jakiestfu
Last active December 12, 2015 08:49
Show Gist options
  • Save jakiestfu/4746630 to your computer and use it in GitHub Desktop.
Save jakiestfu/4746630 to your computer and use it in GitHub Desktop.
<?PHP
class Diamonds{
private $math;
private $latex;
function makeExpressions(){
$style = $this->style;
if( function_exists($this->math, $style) ){
$this->expressions = $this->math->$style;
}
}
function tex(){
$style = $this->style;
if( function_exists($this->tex, $style) ){
$this->latex = $this->tex->$style;
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment