Created
March 17, 2010 01:17
-
-
Save AdrianRossouw/334775 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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