diff --git a/Model/Product.php b/Model/Product.php index 7b85419..b78debe 100644 --- a/Model/Product.php +++ b/Model/Product.php @@ -6,12 +6,9 @@ class Product { - private Category $category; - - function __construct(Category $category) - { - $this->category = $category; - } + function __construct( + private Category $category, + ) {} function getCategoryName(): string {