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

DiscountedLineItemPrice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 9 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