the REAL factory method pattern

This commit is contained in:
Trismegiste
2013-05-10 21:09:55 +02:00
parent 9b7330795d
commit cc765bde41
8 changed files with 235 additions and 0 deletions

16
FactoryMethod/Vehicle.php Normal file
View File

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