PHP7 FactoryMethod

This commit is contained in:
Dominik Liebler
2016-09-22 13:28:46 +02:00
parent 6a98bcb73b
commit 4760d898a0
11 changed files with 94 additions and 159 deletions

View File

@@ -2,15 +2,7 @@
namespace DesignPatterns\Creational\FactoryMethod;
/**
* VehicleInterface is a contract for a vehicle.
*/
interface VehicleInterface
{
/**
* sets the color of the vehicle.
*
* @param string $rgb
*/
public function setColor($rgb);
public function setColor(string $rgb);
}