1 <?php
2
3 /* --------------------------------------------------------------
4 ProductFactoryInterface.inc.php 2016-01-18
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2016 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 * Interface ProductFactoryInterface
15 *
16 * @category System
17 * @package Product
18 * @subpackage Interfaces
19 */
20 interface ProductFactoryInterface
21 {
22 /**
23 * Creates a product.
24 *
25 * @return ProductInterface
26 */
27 public function createProduct();
28
29
30 /**
31 * Creates a stored product.
32 *
33 * @param IdType $productId Product ID.
34 *
35 * @return StoredProductInterface
36 */
37 public function createStoredProduct(IdType $productId);
38
39
40 /**
41 * Creates a product settings container.
42 *
43 * @return ProductSettingsInterface
44 */
45 public function createProductSettings();
46 }