pickles/classes/Viewer.php
Josh Sherman 046d265347 Added the new classes and stuff.
git-svn-id: http://svn.cleancode.org/svn/pickles@30 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-07-12 23:28:44 +00:00

14 lines
189 B
PHP

<?php
class Viewer {
private function __construct() { }
public static function factory(Model $model) {
$class = 'Viewer_' . $model->getView();
return new $class($model);
}
}
?>