This commit is contained in:
Dominik Liebler
2013-09-13 14:19:55 +02:00
parent 8452c63b7e
commit 8b82ed198d
47 changed files with 93 additions and 218 deletions

View File

@@ -1,9 +1,5 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\Builder\Parts;
/**
@@ -11,5 +7,5 @@ namespace DesignPatterns\Builder\Parts;
*/
class Bike extends Vehicle
{
}
}

View File

@@ -1,9 +1,5 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\Builder\Parts;
/**
@@ -11,5 +7,5 @@ namespace DesignPatterns\Builder\Parts;
*/
class Car extends Vehicle
{
}
}

View File

@@ -2,7 +2,10 @@
namespace DesignPatterns\Builder\Parts;
/**
* Class Door
*/
class Door
{
}
}

View File

@@ -2,7 +2,10 @@
namespace DesignPatterns\Builder\Parts;
/**
* Class Engine
*/
class Engine
{
}
}

View File

@@ -1,9 +1,5 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\Builder\Parts;
/**
@@ -11,12 +7,17 @@ namespace DesignPatterns\Builder\Parts;
*/
abstract class Vehicle
{
/**
* @var array
*/
protected $data;
/**
* @param string $key
* @param mixed $value
*/
public function setPart($key, $value)
{
$this->data[$key] = $value;
}
}
}