Created
October 9, 2014 14:21
-
-
Save thomaslarsson/eb2a13d3d620af80acfa to your computer and use it in GitHub Desktop.
Thai logic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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