Skip to content

Instantly share code, notes, and snippets.

@AdrianRossouw
Created March 17, 2010 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianRossouw/334775 to your computer and use it in GitHub Desktop.
Save AdrianRossouw/334775 to your computer and use it in GitHub Desktop.
class provisionServer {
public static function evaluate($options) {
return __CLASS__;
}
}
class provisionPlatform extends provisionServer {
public static function evaluate($options) {
if (isset($options['root'])) {
return __CLASS__;
}
parent::evaluate($options);
}
}
class provisionSite extends provisionPlatform {
public static function evaluate($options) {
if (isset($options['uri'])) {
return __CLASS__;
}
parent::evaluate($options);
}
}
$class = provisionPlatform::evaluate(array('root' => 1));
$environment = new $class();
print_r($environment);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment