Removed color because of to high overhead

This commit is contained in:
Kevin Frantz 2018-07-14 11:25:18 +02:00
parent e307c7e07e
commit a1c5fba3b1
3 changed files with 6 additions and 23 deletions

View File

@ -1,16 +0,0 @@
<?php
namespace entity\color;
/**
* In a real Application color would be saved in the database
* Otherwise it's agains "Normalisierung" ;)
* @author kevinfrantz
*
*/
interface ColorInterface
{
public function setColor(string $color):void;
public function getColor():string;
}

View File

@ -1,7 +1,6 @@
<?php
namespace entity\product;
use entity\color\ColorInterface;
use entity\price\PriceInterface;
use entity\image\ImageInterface;
@ -18,10 +17,10 @@ final class Product implements ProductInterface
public function getName(): string
{}
public function setColor(ColorInterface $color): void
public function setColor(string $color): void
{}
public function getColor(): ColorInterface
public function getColor(): string
{}
public function setId(int $id): void

View File

@ -46,14 +46,14 @@ interface ProductInterface
public function setName(string $name):void;
/**
* @return ColorInterface
* @return string
*/
public function getColor():ColorInterface;
public function getColor():string;
/**
* @param ColorInterface $color
* @param string $color
*/
public function setColor(ColorInterface $color):void;
public function setColor(string $color):void;
/**
* @return int