diff --git a/src/entity/product/Product.php b/src/entity/product/Product.php index 9806adf..419fa1b 100644 --- a/src/entity/product/Product.php +++ b/src/entity/product/Product.php @@ -11,35 +11,63 @@ use entity\image\ImageInterface; */ final class Product implements ProductInterface { + private $name; + + private $image; + + private $color; + + private $price; + public function setName(string $name): void - {} + { + $this->name = $name; + } public function getName(): string - {} + { + return $this->name; + } public function setColor(string $color): void - {} + { + $this->color = $color; + } public function getColor(): string - {} + { + return $this->color; + } public function setId(int $id): void - {} + { + $this->id = $id; + } public function getId(): int - {} + { + return $this->id; + } public function setPrice(PriceInterface $price): void - {} + { + $this->price = $price; + } public function getImage(): ImageInterface - {} + { + return $this->image; + } public function getPrice(): PriceInterface - {} + { + return $this->price; + } public function setImage(ImageInterface $image): void - {} + { + $this->image = $image; + } } diff --git a/src/entity/product/ProductTest.php b/src/entity/product/ProductTest.php index 9585e9c..e77dda1 100644 --- a/src/entity/product/ProductTest.php +++ b/src/entity/product/ProductTest.php @@ -62,7 +62,7 @@ class ProductTest extends TestCase } public function testName():void{ - $this->assertEquals(self::NAME, $this->product->getColor()); + $this->assertEquals(self::NAME, $this->product->getName()); } }