Completed
Push — develop ( c7c96c...417e78 )
by Jens
17:22
created

ExternalLineItemTotalPrice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 2
    public function fieldDefinitions()
23
    {
24
        return [
25 2
            'price' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'],
26 2
            'totalPrice' => [static::TYPE => '\Commercetools\Core\Model\Common\Money']
27
        ];
28
    }
29
}
30