mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 01:14:01 +02:00
merge from master
This commit is contained in:
23
Structural/Bridge/Vehicle.php
Normal file
23
Structural/Bridge/Vehicle.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Structural\Bridge;
|
||||
|
||||
/**
|
||||
* Abstraction
|
||||
*/
|
||||
abstract class Vehicle
|
||||
{
|
||||
|
||||
protected $workShop1;
|
||||
protected $workShop2;
|
||||
|
||||
protected function __construct(Workshop $workShop1, Workshop $workShop2)
|
||||
{
|
||||
$this->workShop1 = $workShop1;
|
||||
$this->workShop2 = $workShop2;
|
||||
}
|
||||
|
||||
public function manufacture()
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user