Passed
Push — develop ( 899431...2f8c91 )
by Jens
08:54
created

CustomerCompanyNameSetMessage::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author @jenschude <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Message;
7
8
use Commercetools\Core\Model\Common\DateTimeDecorator;
9
use DateTime;
10
use Commercetools\Core\Model\Common\Reference;
11
12
/**
13
 * @package Commercetools\Core\Model\Message
14
 * @link https://docs.commercetools.com/http-api-projects-messages.html#customercompanynameset-message
15
 * @method string getId()
16
 * @method CustomerCompanyNameSetMessage setId(string $id = null)
17
 * @method int getVersion()
18
 * @method CustomerCompanyNameSetMessage setVersion(int $version = null)
19
 * @method DateTimeDecorator getCreatedAt()
20
 * @method CustomerCompanyNameSetMessage setCreatedAt(DateTime $createdAt = null)
21
 * @method DateTimeDecorator getLastModifiedAt()
22
 * @method CustomerCompanyNameSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
23
 * @method int getSequenceNumber()
24
 * @method CustomerCompanyNameSetMessage setSequenceNumber(int $sequenceNumber = null)
25
 * @method Reference getResource()
26
 * @method CustomerCompanyNameSetMessage setResource(Reference $resource = null)
27
 * @method int getResourceVersion()
28
 * @method CustomerCompanyNameSetMessage setResourceVersion(int $resourceVersion = null)
29
 * @method string getType()
30
 * @method CustomerCompanyNameSetMessage setType(string $type = null)
31
 * @method string getCompanyName()
32
 * @method CustomerCompanyNameSetMessage setCompanyName(string $companyName = null)
33
 */
34
class CustomerCompanyNameSetMessage extends Message
35
{
36
    const MESSAGE_TYPE = 'CustomerCompanyNameSet';
37
38 1
    public function fieldDefinitions()
39
    {
40 1
        $definitions = parent::fieldDefinitions();
41 1
        $definitions['companyName'] = [static::TYPE => 'string'];
42
43 1
        return $definitions;
44
    }
45
}
46