1 | <?php |
||
15 | final class DetailedProductViewFactory implements ProductViewFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var ImageViewFactoryInterface |
||
19 | */ |
||
20 | private $imageViewFactory; |
||
21 | |||
22 | /** |
||
23 | * @var ProductViewFactoryInterface |
||
24 | */ |
||
25 | private $productViewFactory; |
||
26 | |||
27 | /** |
||
28 | * @var ProductVariantViewFactoryInterface |
||
29 | */ |
||
30 | private $variantViewFactory; |
||
31 | |||
32 | /** |
||
33 | * @param ImageViewFactoryInterface $imageViewFactory |
||
34 | * @param ProductViewFactoryInterface $productViewFactory |
||
35 | * @param ProductVariantViewFactoryInterface $variantViewFactory |
||
36 | */ |
||
37 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function create(ProductInterface $product, ChannelInterface $channel, $locale) |
||
60 | |||
61 | /** |
||
62 | * @param ProductInterface $product |
||
63 | * @param ChannelInterface $channel |
||
64 | * @param string $locale |
||
65 | * |
||
66 | * @return ProductView |
||
67 | */ |
||
68 | private function createWithVariants(ProductInterface $product, ChannelInterface $channel, $locale) |
||
91 | |||
92 | /** |
||
93 | * @param ProductAssociationInterface $association |
||
94 | * @param ChannelInterface $channel |
||
95 | * @param string $locale |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | private function createAssociations(ProductAssociationInterface $association, ChannelInterface $channel, $locale) |
||
109 | } |
||
110 |