Completed
Push — master ( 4b89b9...dd9abc )
by Jens
10:35
created

TaxedItemPrice::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Common;
7
8
/**
9
 * @package Commercetools\Core\Model\Common
10
 *
11
 * @method Money getTotalNet()
12
 * @method TaxedItemPrice setTotalNet(Money $totalNet = null)
13
 * @method Money getTotalGross()
14
 * @method TaxedItemPrice setTotalGross(Money $totalGross = null)
15
 */
16
class TaxedItemPrice extends JsonObject
17
{
18
    public function fieldDefinitions()
19
    {
20
        return [
21
            'totalNet' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'],
22
            'totalGross' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'],
23
        ];
24
    }
25
}
26