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

ItemShippingDetailsDraft   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 4 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 ItemShippingTargetCollection getTargets()
14
 * @method ItemShippingDetailsDraft setTargets(ItemShippingTargetCollection $targets = null)
15
 */
16
class ItemShippingDetailsDraft extends JsonObject
17
{
18 5
    public function fieldDefinitions()
19
    {
20
        return [
21 5
            'targets' => [static::TYPE => ItemShippingTargetCollection::class],
22
        ];
23
    }
24
}
25