Passed
Pull Request — develop (#423)
by nikos
09:13
created

ItemShippingTarget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 5 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Commercetools\Core\Model\Cart;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
10
/**
11
 * @package Commercetools\Core\Model\Cart
12
 *
13
 * @method string getAddressKey()
14
 * @method ItemShippingTarget setAddressKey(string $addressKey = null)
15
 * @method int getQuantity()
16
 * @method ItemShippingTarget setQuantity(int $quantity = null)
17
 */
18
class ItemShippingTarget extends JsonObject
19
{
20 5
    public function fieldDefinitions()
21
    {
22
        return [
23 5
            'addressKey' => [static::TYPE => 'string'],
24 5
            'quantity' => [static::TYPE => 'int'],
25
        ];
26
    }
27
}
28