CHSCode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 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
    /**
20
     * The system code.
21
     *
22
     * @return string
23
     */
24
    final public function __toString(): string
25
    {
26
        return $this->getHarmonizedSystemCode();
27
    }
28
}