1 <?php
2
3 /* --------------------------------------------------------------
4 ProductObjectService.inc.php 2015-12-08
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2015 Gambio GmbH
8 Released under the GNU General Public License (Version 2)
9 [http://www.gnu.org/licenses/gpl-2.0.html]
10 --------------------------------------------------------------
11 */
12
13 /**
14 * Class ProductObjectService
15 *
16 * @category System
17 * @package Product
18 */
19 class ProductObjectService implements ProductObjectServiceInterface
20 {
21 /**
22 * Product factory.
23 *
24 * @var ProductFactoryInterface
25 */
26 protected $productFactory;
27
28
29 /**
30 * ProductObjectService constructor.
31 *
32 * @param ProductFactoryInterface $productFactory Product factory.
33 */
34 public function __construct(ProductFactoryInterface $productFactory)
35 {
36 $this->productFactory = $productFactory;
37 }
38
39
40 /**
41 * Creates a product object.
42 *
43 * @return ProductInterface The created product.
44 */
45 public function createProductObject()
46 {
47 return $this->productFactory->createProduct();
48 }
49 }