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

ItemShippingDetails::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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 ItemShippingDetails setTargets(ItemShippingTargetCollection $targets = null)
15
 * @method bool getValid()
16
 * @method ItemShippingDetails setValid(bool $valid = null)
17
 */
18
class ItemShippingDetails extends JsonObject
19
{
20 5
    public function fieldDefinitions()
21
    {
22
        return [
23 5
            'targets' => [static::TYPE => ItemShippingTargetCollection::class],
24 5
            'valid' => [static::TYPE => 'bool'],
25
        ];
26
    }
27
}
28