mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-22 10:11:04 +01:00
Removed color because of to high overhead
This commit is contained in:
parent
e307c7e07e
commit
a1c5fba3b1
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user