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

HttpDestination   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 6 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 HttpDestination setType(string $type = null)
12
 * @method string getUrl()
13
 * @method HttpDestination setUrl(string $url = null)
14
 * @method HttpDestinationAuthentication getAuthentication()
15
 * @method HttpDestination setAuthentication(HttpDestinationAuthentication $authentication = null)
16
 */
17
class HttpDestination extends Destination
18
{
19
    const DESTINATION_TYPE = self::DESTINATION_HTTP;
20
21 5
    public function fieldDefinitions()
22
    {
23
        return [
24 5
            'type' => [static::TYPE => 'string'],
25 5
            'url' => [static::TYPE => 'string'],
26 5
            'authentication' => [static::TYPE => HttpDestinationAuthentication::class]
27
        ];
28
    }
29
}
30