Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Last active February 2, 2017 07:37
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 mneuhaus/f51097296412746d54bd527863cbd11e to your computer and use it in GitHub Desktop.
Save mneuhaus/f51097296412746d54bd527863cbd11e to your computer and use it in GitHub Desktop.
<?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