mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-01 16:58:42 +02:00
24 lines
360 B
PHP
24 lines
360 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\Builder\Parts;
|
|
|
|
/**
|
|
* Vehicle class is an abstraction 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;
|
|
}
|
|
}
|