Passed
Push — develop ( 24a91a...649af0 )
by Jens
14:53 queued 14s
created

InventoryEntryQuantitySetMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 13
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 9 1
1
<?php
2
3
4
namespace Commercetools\Core\Model\Message;
5
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-message-types#inventoryentryquantityset-message
13
 * @method string getId()
14
 * @method InventoryEntryQuantitySetMessage setId(string $id = null)
15
 * @method int getVersion()
16
 * @method InventoryEntryQuantitySetMessage setVersion(int $version = null)
17
 * @method DateTimeDecorator getCreatedAt()
18
 * @method InventoryEntryQuantitySetMessage setCreatedAt(DateTime $createdAt = null)
19
 * @method DateTimeDecorator getLastModifiedAt()
20
 * @method InventoryEntryQuantitySetMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
21
 * @method int getSequenceNumber()
22
 * @method InventoryEntryQuantitySetMessage setSequenceNumber(int $sequenceNumber = null)
23
 * @method Reference getResource()
24
 * @method InventoryEntryQuantitySetMessage setResource(Reference $resource = null)
25
 * @method int getResourceVersion()
26
 * @method InventoryEntryQuantitySetMessage setResourceVersion(int $resourceVersion = null)
27
 * @method string getType()
28
 * @method InventoryEntryQuantitySetMessage setType(string $type = null)
29
 * @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers()
30
 * phpcs:disable
31
 * @method InventoryEntryQuantitySetMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null)
32
 * phpcs:enable
33
 * @method int getOldQuantityOnStock()
34
 * @method InventoryEntryQuantitySetMessage setOldQuantityOnStock(int $oldQuantityOnStock = null)
35
 * @method int getNewQuantityOnStock()
36
 * @method InventoryEntryQuantitySetMessage setNewQuantityOnStock(int $newQuantityOnStock = null)
37
 * @method int getOldAvailableQuantity()
38
 * @method InventoryEntryQuantitySetMessage setOldAvailableQuantity(int $oldAvailableQuantity = null)
39
 * @method int getNewAvailableQuantity()
40
 * @method InventoryEntryQuantitySetMessage setNewAvailableQuantity(int $newAvailableQuantity = null)
41
 */
42
class InventoryEntryQuantitySetMessage extends Message
43
{
44
    const MESSAGE_TYPE = 'InventoryEntryQuantitySet';
45
46
    public function fieldDefinitions()
47
    {
48
        $definitions = parent::fieldDefinitions();
49
        $definitions['oldQuantityOnStock'] = [static::TYPE => 'int'];
50
        $definitions['newQuantityOnStock'] = [static::TYPE => 'int'];
51
        $definitions['oldAvailableQuantity'] = [static::TYPE => 'int'];
52
        $definitions['newAvailableQuantity'] = [static::TYPE => 'int'];
53
54
        return $definitions;
55
    }
56
}
57