Completed
Push — develop ( b6cb2c...9ca58c )
by Jens
15:17 queued 07:08
created

AWSLambdaDestination   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 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 AWSLambdaDestination setType(string $type = null)
12
 * @method string getArn()
13
 * @method AWSLambdaDestination setArn(string $arn = null)
14
 * @method string getAccessKey()
15
 * @method AWSLambdaDestination setAccessKey(string $accessKey = null)
16
 * @method string getAccessSecret()
17
 * @method AWSLambdaDestination setAccessSecret(string $accessSecret = null)
18
 */
19
class AWSLambdaDestination extends Destination
20
{
21
    const DESTINATION_TYPE = self::DESTINATION_AWS_LAMBDA;
22
23 1
    public function fieldDefinitions()
24
    {
25
        return [
26 1
            'type' => [static::TYPE => 'string'],
27 1
            'arn' => [static::TYPE => 'string'],
28 1
            'accessKey' => [static::TYPE => 'string'],
29 1
            'accessSecret' => [static::TYPE => 'string'],
30
        ];
31
    }
32
}
33