Last active
February 2, 2017 07:37
-
-
Save mneuhaus/f51097296412746d54bd527863cbd11e to your computer and use it in GitHub Desktop.
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 | |
class BEAUTIFUL { | |
public function __call($action, $arguments) { | |
switch($action) { | |
case: 'terrificMethod': | |
return 'build a wall and ' . $arguments[0] . '!'; | |
default: | |
die('FAKE METHOD'); | |
} | |
} | |
} | |
$alternativeObject = new BEAUTIFUL(); | |
$alternativeObject->terrificMethod('ban all muslims'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment