Skip to content

Instantly share code, notes, and snippets.

View dskarbek's full-sized avatar

Daniel Skarbek dskarbek

View GitHub Profile
@dskarbek
dskarbek / AnObj.php
Last active February 15, 2016 19:41 — forked from Mihailoff/AnObj.php
PHP Anonymous Object
<?php
/**
* PHP Anonymous Object
* Dan Skarbek's extension to Mihailoff's solution that makes it easier to
* create properties along with methods in the anonymous object.
*/
class AnObj
{
public function __construct(array $options)