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

HttpDestination::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
ccs 4
cts 4
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 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