Passed
Push — develop ( 3b57b3...6834a8 )
by Jens
66:39 queued 50:23
created

OrderCustomerGroupSetMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 1
1
<?php
2
3
namespace Commercetools\Core\Model\Message;
4
5
use Commercetools\Core\Model\CustomerGroup\CustomerGroupReference;
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-projects-messages.html#ordercustomergroupset-message
13
 *
14
 * @method string getId()
15
 * @method OrderCustomerGroupSetMessage setId(string $id = null)
16
 * @method int getVersion()
17
 * @method OrderCustomerGroupSetMessage setVersion(int $version = null)
18
 * @method DateTimeDecorator getCreatedAt()
19
 * @method OrderCustomerGroupSetMessage setCreatedAt(DateTime $createdAt = null)
20
 * @method DateTimeDecorator getLastModifiedAt()
21
 * @method OrderCustomerGroupSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
22
 * @method int getSequenceNumber()
23
 * @method OrderCustomerGroupSetMessage setSequenceNumber(int $sequenceNumber = null)
24
 * @method Reference getResource()
25
 * @method OrderCustomerGroupSetMessage setResource(Reference $resource = null)
26
 * @method int getResourceVersion()
27
 * @method OrderCustomerGroupSetMessage setResourceVersion(int $resourceVersion = null)
28
 * @method string getType()
29
 * @method OrderCustomerGroupSetMessage setType(string $type = null)
30
 * @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers()
31
 * phpcs:disable
32
 * @method OrderCustomerGroupSetMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null)
33
 * phpcs:enable
34
 * @method CustomerGroupReference getCustomerGroup()
35
 * @method OrderCustomerGroupSetMessage setCustomerGroup(CustomerGroupReference $customerGroup = null)
36
 * @method CustomerGroupReference getOldCustomerGroup()
37
 * @method OrderCustomerGroupSetMessage setOldCustomerGroup(CustomerGroupReference $oldCustomerGroup = null)
38
 */
39
class OrderCustomerGroupSetMessage extends Message
40
{
41
    const MESSAGE_TYPE = 'OrderCustomerGroupSet';
42
43 2
    public function fieldDefinitions()
44
    {
45 2
        $definitions = parent::fieldDefinitions();
46 2
        $definitions['customerGroup'] = [static::TYPE => CustomerGroupReference::class];
47 2
        $definitions['oldCustomerGroup'] = [static::TYPE => CustomerGroupReference::class];
48
49 2
        return $definitions;
50
    }
51
}
52