-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeCollectorInterface.php
42 lines (34 loc) · 1.22 KB
/
AttributeCollectorInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
/*
* CoreShop
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - CoreShop Commercial License (CCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) CoreShop GmbH (https://www.coreshop.org)
* @license https://www.coreshop.org/license GPLv3 and CCL
*
*/
namespace CoreShop\Component\Variant;
use CoreShop\Component\Variant\Model\ProductVariantAwareInterface;
use CoreShop\Component\Variant\Model\Resolved\ResolvedAttributeGroup;
interface AttributeCollectorInterface
{
/**
* @return ResolvedAttributeGroup[]
*/
public function getAttributesFromVariants(ProductVariantAwareInterface $product, bool $showInList = true): array;
/**
* @return ResolvedAttributeGroup[]
*/
public function getAttributesFromObject(ProductVariantAwareInterface $product, bool $showInList = true): array;
/**
* @return ResolvedAttributeGroup[]
*/
public function getAttributes(array $products, bool $showInList = true): array;
public function getIndex(ProductVariantAwareInterface $product);
}