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

SmartCollect::getCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
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
     * @return SmartCollection
20
     */
21
    public function getCollection () {
22
        return SmartCollection::load($this, $this->getCollectionId());
23
    }
24
}