Skip to content

Instantly share code, notes, and snippets.

View enaeseth's full-sized avatar

Eric Naeseth enaeseth

View GitHub Profile
<?php
// Define the 'class' class
$class = Obj()
->fn('new', function ($class) {
$newClass = Obj($class->methods)
->fn('new', function($class) {
$obj = Obj($class->imethods);
$args = func_get_args();
array_shift($args);