Passed
Push — develop ( 30dd04...761131 )
by Jens
07:47
created

PriceFunction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 5 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\ShippingMethod;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
use Commercetools\Core\Model\Common\Money;
10
11
/**
12
 * @package Commercetools\Core\Model\ShippingMethod
13
 * @link https://dev.commercetools.com/http-api-projects-shippingMethods.html#cartscore-with-function
14
 * @method string getCurrencyCode()
15
 * @method PriceFunction setCurrencyCode(string $currencyCode = null)
16
 * @method string getFunction()
17
 * @method PriceFunction setFunction(string $function = null)
18
 */
19
class PriceFunction extends JsonObject
20
{
21 2
    public function fieldDefinitions()
22
    {
23
        return [
24 2
            'currencyCode' => [static::TYPE => 'string'],
25 2
            'function' => [static::TYPE => 'string'],
26
        ];
27
    }
28
}
29