mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-26 07:54:59 +02:00
start a restructure
This commit is contained in:
23
Creational/Builder/Parts/Vehicle.php
Normal file
23
Creational/Builder/Parts/Vehicle.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Builder\Parts;
|
||||
|
||||
/**
|
||||
* VehicleInterface is a contract for a vehicle
|
||||
*/
|
||||
abstract class Vehicle
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setPart($key, $value)
|
||||
{
|
||||
$this->data[$key] = $value;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user