Completed
Push — develop ( 3eee82...7c3e6d )
by
unknown
18:31 queued 08:10
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
 *
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
 */
30
class PaymentTransactionChangedMessage extends Message
31
{
32
    const MESSAGE_TYPE = 'PaymentTransactionChanged';
33
34
    public function fieldDefinitions()
35
    {
36
        $definitions = parent::fieldDefinitions();
37
        $definitions['state'] = [static::TYPE => 'string'];
38
39
        return $definitions;
40
    }
41
}
42