cs FactoryMethod

This commit is contained in:
Dominik Liebler
2013-09-11 16:35:18 +02:00
parent 754ea98fb2
commit b05f57064f
7 changed files with 51 additions and 61 deletions

View File

@@ -1,9 +1,5 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\FactoryMethod;
/**
@@ -11,10 +7,16 @@ namespace DesignPatterns\FactoryMethod;
*/
class Ferrari implements Vehicle
{
/**
* @var string
*/
protected $color;
/**
* @param string $rgb
*/
public function setColor($rgb)
{
$this->color = $rgb;
}
}
}