Passed
Push — develop ( bd744c...8ef8de )
by
unknown
09:01
created

DeliveryAddressSetMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 8 1
1
<?php
2
/**
3
 * @author @jenschude <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Message;
7
8
use Commercetools\Core\Model\Common\Address;
9
use Commercetools\Core\Model\Common\DateTimeDecorator;
10
use Commercetools\Core\Model\Common\Reference;
11
use Commercetools\Core\Model\Order\Delivery;
12
use DateTime;
13
14
/**
15
 * @package Commercetools\Core\Model\Message
16
 * @link https://docs.commercetools.com/http-api-projects-messages.html#deliveryaddressset-message
17
 * @method string getId()
18
 * @method DeliveryAddressSetMessage setId(string $id = null)
19
 * @method int getVersion()
20
 * @method DeliveryAddressSetMessage setVersion(int $version = null)
21
 * @method DateTimeDecorator getCreatedAt()
22
 * @method DeliveryAddressSetMessage setCreatedAt(DateTime $createdAt = null)
23
 * @method DateTimeDecorator getLastModifiedAt()
24
 * @method DeliveryAddressSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
25
 * @method int getSequenceNumber()
26
 * @method DeliveryAddressSetMessage setSequenceNumber(int $sequenceNumber = null)
27
 * @method Reference getResource()
28
 * @method DeliveryAddressSetMessage setResource(Reference $resource = null)
29
 * @method int getResourceVersion()
30
 * @method DeliveryAddressSetMessage setResourceVersion(int $resourceVersion = null)
31
 * @method string getType()
32
 * @method DeliveryAddressSetMessage setType(string $type = null)
33
 * @method string getDeliveryId()
34
 * @method DeliveryAddressSetMessage setDeliveryId(string $deliveryId = null)
35
 * @method Address getAddress()
36
 * @method DeliveryAddressSetMessage setAddress(Address $address = null)
37
 */
38
class DeliveryAddressSetMessage extends Message
39
{
40
    const MESSAGE_TYPE = 'DeliveryAddressSet';
41
42
    public function fieldDefinitions()
43
    {
44
        $definitions = parent::fieldDefinitions();
45
        $definitions['deliveryId'] = [static::TYPE => 'string'];
46
        $definitions['address'] = [static::TYPE => Address::class];
47
48
        return $definitions;
49
    }
50
}
51