Skip to content

Instantly share code, notes, and snippets.

@CHH
CHH / MetaObject.php
Created August 30, 2011 13:55
PHP does Meta Programming too! (Requires PHP 5.4)
<?php
namespace CHH;
trait MetaObject
{
protected static $__metaClass;
static function setMetaClass(MetaClass $metaClass)
{
<?php
class ╯°□°)╯︵┻━┻ extends Exception { }
throw new ╯°□°)╯︵┻━┻;