Implemented Bridge Pattern

This commit is contained in:
Ulbrec
2014-04-12 13:23:00 +02:00
parent 978825cb28
commit feaa8daafb
8 changed files with 130 additions and 0 deletions

22
Bridge/Vehicle.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace DesignPatterns\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() {
}
}