(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

16
SimpleFactory/Vehicle.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\SimpleFactory;
/**
* Vehicle is a contract for a vehicle
*/
interface Vehicle
{
function driveTo($destination);
}