SmartCollect   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCollection() 0 3 1
1
<?php
2
3
namespace Helix\Shopify\SmartCollection;
4
5
use Helix\Shopify\Collection\AbstractCollect;
6
use Helix\Shopify\Product;
7
use Helix\Shopify\SmartCollection;
8
9
/**
10
 * A link between a {@link SmartCollection} and a {@link Product}.
11
 *
12
 * @see https://shopify.dev/docs/admin-api/rest/reference/products/collect
13
 *
14
 * @see SmartCollection::newCollect()
15
 */
16
class SmartCollect extends AbstractCollect
17
{
18
19
    /**
20
     * @return SmartCollection
21
     */
22
    public function getCollection()
23
    {
24
        return SmartCollection::load($this, $this->getCollectionId());
25
    }
26
}