Completed
Push — master ( 3f2d2e...78eab5 )
by Jens
09:03
created

ExternalLineItemTotalPrice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 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\DiscountCode\DiscountCodeReference;
10
use Commercetools\Core\Model\Common\Money;
11
12
/**
13
 * @package Commercetools\Core\Model\Cart
14
 * @link https://dev.commercetools.com/http-api-projects-carts.html#externallineitemtotalprice
15
 * @method Money getPrice()
16
 * @method ExternalLineItemTotalPrice setPrice(Money $price = null)
17
 * @method Money getTotalPrice()
18
 * @method ExternalLineItemTotalPrice setTotalPrice(Money $totalPrice = null)
19
 */
20
class ExternalLineItemTotalPrice extends JsonObject
21
{
22
    public function fieldDefinitions()
23
    {
24
        return [
25
            'price' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'],
26
            'totalPrice' => [static::TYPE => '\Commercetools\Core\Model\Common\Money']
27
        ];
28
    }
29
}
30