(not design) pattern : simple factory

This commit is contained in:
Trismegiste
2013-05-10 20:22:43 +02:00
parent 87d4c9277d
commit 9b7330795d
5 changed files with 159 additions and 0 deletions

20
SimpleFactory/Bicycle.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\SimpleFactory;
/**
* Bicycle is a bicycle
*/
class Bicycle implements Vehicle
{
public function driveTo($destination)
{
}
}