Passed
Pull Request — develop (#491)
by Jens
19:16 queued 03:55
created

ExternalOAuth   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
namespace Commercetools\Core\Model\Project;
4
5
use Commercetools\Core\Model\Common\Context;
6
use Commercetools\Core\Model\Common\JsonObject;
7
use Commercetools\Core\Model\Common\LocalizedEnumCollection;
8
9
/**
10
 * @package Commercetools\Core\Model\Project
11
 * @link https://docs.commercetools.com/http-api-projects-project.html#externaloauth
12
 * @method string getUrl()
13
 * @method ExternalOAuth setUrl(string $url = null)
14
 * @method string getAuthorizationHeader()
15
 * @method ExternalOAuth setAuthorizationHeader(string $authorizationHeader = null)
16
 */
17
class ExternalOAuth extends JsonObject
18
{
19 3
    public function fieldDefinitions()
20
    {
21
        return [
22 3
            'url' => [static::TYPE => 'string'],
23 3
            'authorizationHeader' => [static::TYPE => 'string']
24
        ];
25
    }
26
}
27