root/trunk/examples/ColorPrimitivesFactory.php
| Revision 24, 0.5 kB (checked in by mikey, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /** |
| 3 | * Example class for the factoryMethod example. |
| 4 | * |
| 5 | * @author Frank Kleine <frank.kleine@schlund.de> |
| 6 | */ |
| 7 | /** |
| 8 | * Example class for the factoryMethod example. |
| 9 | * |
| 10 | * @package XJConf |
| 11 | * @subpackage examples |
| 12 | */ |
| 13 | class ColorPrimitivesFactory |
| 14 | { |
| 15 | /** |
| 16 | * creates a new ColorPrimitives object |
| 17 | * |
| 18 | * @param string $name name of the color |
| 19 | * @return ColorPrimitives |
| 20 | */ |
| 21 | public static function create($name) |
| 22 | { |
| 23 | $colorPrimities = new ColorPrimitives($name); |
| 24 | return $colorPrimities; |
| 25 | } |
| 26 | } |
| 27 | ?> |
Note: See TracBrowser for help on using the browser.
