1 <?php
2
3 /* --------------------------------------------------------------
4 ProductAttributeRepositoryDeleterInterface.inc.php 2016-01-07
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 * Interface ProductAttributeRepositoryDeleterInterface
15 *
16 * @category System
17 * @package ProductModule
18 * @subpackage Interface
19 */
20 interface ProductAttributeRepositoryDeleterInterface
21 {
22 /**
23 * Removes a product attribute entity by the given product attribute id.
24 *
25 * @param IdType $productAttributeId Id of attribute entity to delete.
26 *
27 * @return ProductAttributeRepositoryDeleterInterface|$this Same instance for chained method calls.
28 */
29 public function deleteAttributeById(IdType $productAttributeId);
30
31
32 /**
33 * Removes all product attributes entities that belongs to the given product entity id.
34 *
35 * @param IdType $productId Id of product entity which belongs to the product attribute entities to delete.
36 *
37 * @return ProductAttributeRepositoryDeleterInterface|$this Same instance for chained method calls.
38 */
39 public function deleteAttributesByProductId(IdType $productId);
40 }