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

PriceFunction::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 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