mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
the REAL factory method pattern
This commit is contained in:
16
FactoryMethod/Vehicle.php
Normal file
16
FactoryMethod/Vehicle.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* DesignPatternPHP
|
||||
*/
|
||||
|
||||
namespace DesignPatterns\FactoryMethod;
|
||||
|
||||
/**
|
||||
* Vehicle is a contract for a vehicle
|
||||
*/
|
||||
interface Vehicle
|
||||
{
|
||||
|
||||
function setColor($rgb);
|
||||
}
|
Reference in New Issue
Block a user