1 <?php
2
3 /* --------------------------------------------------------------
4 ProductImageContainerRepositoryInterface.inc.php 2016-01-04
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 /**
15 * Interface ProductImageContainerRepositoryInterface
16 * @category System
17 * @package Product
18 * @subpackage Interfaces
19 */
20 interface ProductImageContainerRepositoryInterface
21 {
22 /**
23 * Stores the product image container.
24 *
25 * @param IdType $productId Product ID.
26 * @param ProductImageContainerInterface $imageContainer Product image container.
27 *
28 * @return ProductImageContainerRepositoryInterface Same instance for method chaining.
29 */
30 public function store(IdType $productId, ProductImageContainerInterface $imageContainer);
31
32
33 /**
34 * Returns a product image container based on the product ID given.
35 *
36 * @param IdType $productId Product ID.
37 *
38 * @return ProductImageContainerInterface Product image container.
39 */
40 public function getByProductId(IdType $productId);
41
42
43 /**
44 * Deletes a product image container based on the product ID given.
45 *
46 * @param IdType $productId Product ID.
47 *
48 * @return ProductImageContainerRepositoryInterface Same instance for method chaining.
49 */
50 public function deleteByProductId(IdType $productId);
51 }