Skip to content

Instantly share code, notes, and snippets.

@thomaslarsson
Created October 9, 2014 14:21
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 thomaslarsson/eb2a13d3d620af80acfa to your computer and use it in GitHub Desktop.
Save thomaslarsson/eb2a13d3d620af80acfa to your computer and use it in GitHub Desktop.
Thai logic
<?php
interface Same {
const SAME_BUT_DIFFERENT = "yes";
const SAME = "yes";
public function same($same);
}
class Thailand implements Same
{
public function same($same)
{
return ($this == $same) ? SAME::SAME : SAME:SAME_BUT_DIFFERENT;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment