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

AWSLambdaDestination::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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