mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 22:17:25 +02:00
cs SimpleFactory and Builder
This commit is contained in:
16
SimpleFactory/VehicleInterface.php
Normal file
16
SimpleFactory/VehicleInterface.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\SimpleFactory;
|
||||
|
||||
/**
|
||||
* VehicleInterface is a contract for a vehicle
|
||||
*/
|
||||
interface VehicleInterface
|
||||
{
|
||||
/**
|
||||
* @param mixed $destination
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function driveTo($destination);
|
||||
}
|
Reference in New Issue
Block a user