merge from master

This commit is contained in:
Antonio Spinelli
2014-05-02 12:33:44 -03:00
parent 9beb7d9a58
commit 14a9dfe7cf
16 changed files with 325 additions and 17 deletions

22
Structural/Bridge/Car.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace DesignPatterns\Structural\Bridge;
/**
* Refined Abstraction
*/
class Car extends Vehicle
{
public function __construct(Workshop $workShop1, Workshop $workShop2)
{
parent::__construct($workShop1, $workShop2);
}
public function manufacture()
{
print 'Car ';
$this->workShop1->work();
$this->workShop2->work();
}
}