mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-09 11:27:13 +02:00
Removed color because of to high overhead
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user