Completed
Push — master ( 18bfc7...82e0b5 )
by Jens
18:00 queued 05:19
created

MessageSubscription   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 1
1
<?php
2
/**
3
 * @author @jayS-de <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Subscription;
7
8
use Commercetools\Core\Model\Common\JsonObject;
9
10
/**
11
 * @package Commercetools\Core\Model\Subscription
12
 *
13
 * @method string getResourceTypeId()
14
 * @method MessageSubscription setResourceTypeId(string $resourceTypeId = null)
15
 * @method array getTypes()
16
 * @method MessageSubscription setTypes(array $types = null)
17
 */
18
class MessageSubscription extends JsonObject
19
{
20
    public function fieldDefinitions()
21
    {
22
        return [
23
            'resourceTypeId' => [static::TYPE => 'string'],
24
            'types' => [static::TYPE => 'array']
25
        ];
26
    }
27
}
28