Completed
Push — master ( 9c37c7...1d2d63 )
by Jens
08:02
created

DiscountedLineItemPrice::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Cart;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
use Commercetools\Core\Model\Common\Money;
10
11
/**
12
 * @package Commercetools\Core\Model\Cart
13
 * @link https://dev.commercetools.com/http-api-projects-carts.html#discounted-line-item-price
14
 * @method Money getValue()
15
 * @method DiscountedLineItemPrice setValue(Money $value = null)
16
 * @method DiscountedLineItemPortionCollection getIncludedDiscounts()
17
 * @method DiscountedLineItemPrice setIncludedDiscounts(DiscountedLineItemPortionCollection $includedDiscounts = null)
18
 */
19
class DiscountedLineItemPrice extends JsonObject
20
{
21 2
    public function fieldDefinitions()
22
    {
23
        return [
24 2
            'value' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'],
25
            'includedDiscounts' => [
26 2
                static::TYPE => '\Commercetools\Core\Model\Cart\DiscountedLineItemPortionCollection'
27
            ]
28
        ];
29
    }
30
}
31