Test Failed
Pull Request — develop (#434)
by nikos
13:23
created

ApiClientDraft   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
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
 */
4
5
namespace Commercetools\Core\Model\ApiClient;
6
7
use Commercetools\Core\Model\Common\JsonObject;
8
9
/**
10
 * @package Commercetools\Core\Model\ApiClient
11
 *
12
 * @method string getName()
13
 * @method ApiClientDraft setName(string $name = null)
14
 * @method string getScope()
15
 * @method ApiClientDraft setScope(string $scope = null)
16
 */
17
class ApiClientDraft extends JsonObject
18
{
19 3
    public function fieldDefinitions()
20
    {
21
        return [
22 3
            'name' => [static::TYPE => 'string'],
23 3
            'scope' => [static::TYPE => 'string']
24
        ];
25
    }
26
}
27