Passed
Push — master ( 18b32f...fa2b73 )
by Jens
08:15
created

AzureFunctionsAuthentication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 9
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\Extension;
6
7
/**
8
 * @package Commercetools\Core\Model\Extension
9
 *
10
 * @method string getType()
11
 * @method AzureFunctionsAuthentication setType(string $type = null)
12
 * @method string getKey()
13
 * @method AzureFunctionsAuthentication setKey(string $key = null)
14
 */
15
class AzureFunctionsAuthentication extends HttpDestinationAuthentication
16
{
17
    const AUTH_TYPE = self::AUTH_AZURE_FUNCTIONS;
18
19 1
    public function fieldDefinitions()
20
    {
21
        return [
22 1
            'type' => [static::TYPE => 'string'],
23 1
            'key' => [static::TYPE => 'string']
24
        ];
25
    }
26
}
27