Completed
Push — develop ( dbb8a2...014dde )
by
unknown
21:13 queued 12:54
created

CategoryCreatedMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 12
ccs 0
cts 6
cp 0
rs 10

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\Message;
7
8
use Commercetools\Core\Model\Common\DateTimeDecorator;
9
use Commercetools\Core\Model\Common\Reference;
10
use Commercetools\Core\Model\Product\ProductProjection;
11
use Commercetools\Core\Model\Category\Category;
12
13
/**
14
 * @package Commercetools\Core\Model\Message
15
 *
16
 * @method string getId()
17
 * @method CategoryCreatedMessage setId(string $id = null)
18
 * @method DateTimeDecorator getCreatedAt()
19
 * @method CategoryCreatedMessage setCreatedAt(\DateTime $createdAt = null)
20
 * @method int getSequenceNumber()
21
 * @method CategoryCreatedMessage setSequenceNumber(int $sequenceNumber = null)
22
 * @method Reference getResource()
23
 * @method CategoryCreatedMessage setResource(Reference $resource = null)
24
 * @method int getResourceVersion()
25
 * @method CategoryCreatedMessage setResourceVersion(int $resourceVersion = null)
26
 * @method string getType()
27
 * @method CategoryCreatedMessage setType(string $type = null)
28
 * @method ProductProjection getProductProjection()
29
 * @method ProductPublishedMessage setProductProjection(ProductProjection $productProjection = null)
30
 * @method Category getCategory()
31
 * @method CategoryCreatedMessage setCategory(Category $category = null)
32
 */
33
class CategoryCreatedMessage extends Message
34
{
35
    const MESSAGE_TYPE = 'CategoryCreated';
36
37
    public function fieldDefinitions()
38
    {
39
        $definitions = parent::fieldDefinitions();
40
        $definitions['category'] = [static::TYPE => '\Commercetools\Core\Model\Category\Category'];
41
42
        return $definitions;
43
    }
44
}
45