Skip to content

@iammerrick /gist:1648761
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
class Person
{
public function __construct()
{
}
public static function factory($kind, $options)
{
$person = new 'Person_'.$kind;
foreach($options as $key => $option)
{
$person->$key = $option;
}
return $person;
}
}
class Ninja extends Person
{
public function __construct()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.