Passed
Push — master ( 199ece...6bc7da )
by y
02:13
created

CustomCollect   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCollection() 0 2 1
1
<?php
2
3
namespace Helix\Shopify\CustomCollection;
4
5
use Helix\Shopify\Collection\AbstractCollect;
6
use Helix\Shopify\CustomCollection;
7
use Helix\Shopify\Product;
8
9
/**
10
 * A link between a {@link CustomCollection} and a {@link Product}.
11
 *
12
 * @see https://shopify.dev/docs/admin-api/rest/reference/products/collect
13
 *
14
 * @see CustomCollection::newCollect()
15
 *
16
 * @method $this setPosition (int $position) @depends create-only, the custom collection must be set to sort manually.
17
 * @method $this setSortValue (int $value) @depends create-only, the custom collection must be set to sort manually.
18
 */
19
class CustomCollect extends AbstractCollect {
20
21
    /**
22
     * @return CustomCollection
23
     */
24
    public function getCollection () {
25
        return CustomCollection::load($this, $this->getCollectionId());
26
    }
27
28
}