Completed
Branch master (9c37c7)
by Jens
07:29
created

PaymentTransactionChangedMessage   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\Payment\Transaction;
11
12
/**
13
 * @package Commercetools\Core\Model\Message
14
 * @link https://dev.commercetools.com/http-api-projects-messages.html#payment-transaction-state-changed-message
15
 * @method string getId()
16
 * @method PaymentTransactionChangedMessage setId(string $id = null)
17
 * @method DateTimeDecorator getCreatedAt()
18
 * @method PaymentTransactionChangedMessage setCreatedAt(\DateTime $createdAt = null)
19
 * @method int getSequenceNumber()
20
 * @method PaymentTransactionChangedMessage setSequenceNumber(int $sequenceNumber = null)
21
 * @method Reference getResource()
22
 * @method PaymentTransactionChangedMessage setResource(Reference $resource = null)
23
 * @method int getResourceVersion()
24
 * @method PaymentTransactionChangedMessage setResourceVersion(int $resourceVersion = null)
25
 * @method string getType()
26
 * @method PaymentTransactionChangedMessage setType(string $type = null)
27
 * @method string getState()
28
 * @method PaymentTransactionChangedMessage setState(string $state = null)
29
 * @method int getVersion()
30
 * @method PaymentTransactionChangedMessage setVersion(int $version = null)
31
 * @method DateTimeDecorator getLastModifiedAt()
32
 * @method PaymentTransactionChangedMessage setLastModifiedAt(\DateTime $lastModifiedAt = null)
33
 */
34
class PaymentTransactionChangedMessage extends Message
35
{
36
    const MESSAGE_TYPE = 'PaymentTransactionChanged';
37
38
    public function fieldDefinitions()
39
    {
40
        $definitions = parent::fieldDefinitions();
41
        $definitions['state'] = [static::TYPE => 'string'];
42
43
        return $definitions;
44
    }
45
}
46