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

CHSCode::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
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
}