Passed
Push — develop ( 1795ba...79eaf3 )
by Jens
25:35 queued 03:06
created

StoreCreatedMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 10 1
1
<?php
2
3
namespace Commercetools\Core\Model\Message;
4
5
use Commercetools\Core\Model\CustomField\CustomFieldObject;
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
 *
13
 * @method string getId()
14
 * @method StoreCreatedMessage setId(string $id = null)
15
 * @method int getVersion()
16
 * @method StoreCreatedMessage setVersion(int $version = null)
17
 * @method DateTimeDecorator getCreatedAt()
18
 * @method StoreCreatedMessage setCreatedAt(DateTime $createdAt = null)
19
 * @method DateTimeDecorator getLastModifiedAt()
20
 * @method StoreCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
21
 * @method int getSequenceNumber()
22
 * @method StoreCreatedMessage setSequenceNumber(int $sequenceNumber = null)
23
 * @method Reference getResource()
24
 * @method StoreCreatedMessage setResource(Reference $resource = null)
25
 * @method int getResourceVersion()
26
 * @method StoreCreatedMessage setResourceVersion(int $resourceVersion = null)
27
 * @method string getType()
28
 * @method StoreCreatedMessage setType(string $type = null)
29
 * @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers()
30
 * phpcs:disable
31
 * @method StoreCreatedMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null)
32
 * phpcs:enable
33
 * @method string getName()
34
 * @method StoreCreatedMessage setName(string $name = null)
35
 * @method array getLanguages()
36
 * @method StoreCreatedMessage setLanguages(array $languages = null)
37
 * @method array getDistributionChannels()
38
 * @method StoreCreatedMessage setDistributionChannels(array $distributionChannels = null)
39
 * @method array getSupplyChannels()
40
 * @method StoreCreatedMessage setSupplyChannels(array $supplyChannels = null)
41
 * @method CustomFieldObject getCustom()
42
 * @method StoreCreatedMessage setCustom(CustomFieldObject $custom = null)
43
 */
44
class StoreCreatedMessage extends Message
45
{
46
    const MESSAGE_TYPE = 'StoreCreated';
47
48 3
    public function fieldDefinitions()
49
    {
50 3
        return array_merge(
51 3
            parent::fieldDefinitions(),
52
            [
53 3
                'name' => [static::TYPE => 'string'],
54 3
                'languages' => [static::TYPE => 'array'],
55 3
                'distributionChannels' => [static::TYPE => 'array'],
56 3
                'supplyChannels' => [static::TYPE => 'array'],
57 3
                'custom' => [static::TYPE => CustomFieldObject::class],
58
            ]
59
        );
60
    }
61
}
62