Passed
Push — master ( 0d508a...6e2a06 )
by Jens
16:22 queued 10s
created

OrderExcerpt   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 6 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Commercetools\Core\Model\OrderEdit;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
use Commercetools\Core\Model\Common\Money;
10
use Commercetools\Core\Model\Common\TaxedPrice;
11
12
/**
13
 * @package Commercetools\Core\Model\OrderEdit
14
 *
15
 * @method Money getTotalPrice()
16
 * @method OrderExcerpt setTotalPrice(Money $totalPrice = null)
17
 * @method TaxedPrice getTaxedPrice()
18
 * @method OrderExcerpt setTaxedPrice(TaxedPrice $taxedPrice = null)
19
 * @method int getVersion()
20
 * @method OrderExcerpt setVersion(int $version = null)
21
 */
22
class OrderExcerpt extends JsonObject
23
{
24 2
    public function fieldDefinitions()
25
    {
26
        return [
27 2
            'totalPrice' => [static::TYPE => Money::class],
28 2
            'taxedPrice' => [static::TYPE => TaxedPrice::class],
29 2
            'version' => [static::TYPE => 'int']
30
        ];
31
    }
32
}
33