1 | <?php |
||
6 | class Result implements ProductInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var ProductInterface |
||
10 | */ |
||
11 | private $product; |
||
12 | |||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $percent; |
||
17 | |||
18 | /** |
||
19 | * @param ProductInterface $product |
||
20 | * @param int $percent |
||
21 | */ |
||
22 | public function __construct(ProductInterface $product, int $percent) |
||
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | */ |
||
31 | public function getAssociationPercent() :int |
||
35 | |||
36 | /** |
||
37 | * @return ProductInterface |
||
38 | */ |
||
39 | public function getProduct() :ProductInterface |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getId(): string |
||
51 | } |