Passed
Push — master ( 3f8301...c7321f )
by Jens
42:49 queued 17:59
created

OrderStoreSetMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 6 1
1
<?php
2
3
namespace Commercetools\Core\Model\Message;
4
5
use Commercetools\Core\Model\Store\StoreReference;
6
use Commercetools\Core\Model\Common\DateTimeDecorator;
7
use DateTime;
8
use Commercetools\Core\Model\Common\Reference;
9
10
/**
11
 * @package Commercetools\Core\Model\Message
12
 * @link https://docs.commercetools.com/http-api-message-types.html#orderstoreset
13
 * @method string getId()
14
 * @method OrderStoreSetMessage setId(string $id = null)
15
 * @method int getVersion()
16
 * @method OrderStoreSetMessage setVersion(int $version = null)
17
 * @method DateTimeDecorator getCreatedAt()
18
 * @method OrderStoreSetMessage setCreatedAt(DateTime $createdAt = null)
19
 * @method DateTimeDecorator getLastModifiedAt()
20
 * @method OrderStoreSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
21
 * @method int getSequenceNumber()
22
 * @method OrderStoreSetMessage setSequenceNumber(int $sequenceNumber = null)
23
 * @method Reference getResource()
24
 * @method OrderStoreSetMessage setResource(Reference $resource = null)
25
 * @method int getResourceVersion()
26
 * @method OrderStoreSetMessage setResourceVersion(int $resourceVersion = null)
27
 * @method string getType()
28
 * @method OrderStoreSetMessage setType(string $type = null)
29
 * @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers()
30
 * phpcs:disable
31
 * @method OrderStoreSetMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null)
32
 * phpcs:enable
33
 * @method StoreReference getStore()
34
 * @method OrderStoreSetMessage setStore(StoreReference $store = null)
35
 */
36
class OrderStoreSetMessage extends Message
37
{
38
    const MESSAGE_TYPE = 'OrderStoreSet';
39
40 2
    public function fieldDefinitions()
41
    {
42 2
        $definitions = parent::fieldDefinitions();
43 2
        $definitions['store'] = [static::TYPE => StoreReference::class];
44
45 2
        return $definitions;
46
    }
47
}
48