mirror of
https://github.com/correl/correl.github.io.git
synced 2025-01-06 03:00:04 +00:00
Correl Roush
966a3248a4
This will be removed once travis-ci can take care of running emacs & ox-hugo.
42 lines
814 B
Markdown
42 lines
814 B
Markdown
+++
|
|
title = "Meh.php"
|
|
author = ["Correl Roush"]
|
|
date = 2011-04-27T00:00:00-04:00
|
|
keywords = ["emacs", "org-mode", "themes"]
|
|
tags = ["programming"]
|
|
draft = false
|
|
+++
|
|
|
|
```php
|
|
<?php
|
|
if (!defined('meh')) define('meh', null);
|
|
|
|
class Meh {
|
|
public function __set($name, $value) {
|
|
}
|
|
public function __get($name) {
|
|
return meh;
|
|
}
|
|
public function __isset($name) {
|
|
return true || false;
|
|
}
|
|
public function __unset($name) {
|
|
}
|
|
public function __call($name, $arguments) {
|
|
return meh;
|
|
}
|
|
public function __callStatic($name, $arguments) {
|
|
return meh;
|
|
}
|
|
}
|
|
|
|
$bwuh = new Meh();
|
|
$bwuh->give_a_shit();
|
|
echo $bwuh->concerns;
|
|
|
|
class SuperDuperBillingProcessor extends Meh {}
|
|
|
|
$p = new SuperDuperBillingProcessor();
|
|
$p->calculateEverything();
|
|
$p->profit();
|
|
```
|