Completed
Push — master ( 44676f...b7bc18 )
by Jens
13:18
created

TaxedItemPrice::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
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 3
    public function fieldDefinitions()
19
    {
20
        return [
21 3
            'totalNet' => [static::TYPE => Money::class],
22 3
            'totalGross' => [static::TYPE => Money::class],
23
        ];
24
    }
25
}
26