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

CHSCode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 2 1
1
<?php
2
3
namespace Helix\Shopify\InventoryItem;
4
5
use Helix\Shopify\Base\Data;
6
7
/**
8
 * @see https://shopify.dev/docs/admin-api/rest/reference/inventory/inventoryitem
9
 *
10
 * @method string   getCountryCode          ()
11
 * @method string   getHarmonizedSystemCode ()
12
 *
13
 * @method $this    setCountryCode          (string $code)
14
 * @method $this    setHarmonizedSystemCode (string $code)
15
 */
16
class CHSCode extends Data {
17
18
    /**
19
     * The system code.
20
     *
21
     * @return string
22
     */
23
    final public function __toString (): string {
24
        return $this->getHarmonizedSystemCode();
25
    }
26
}