Completed
Push — develop ( 3eee82...7c3e6d )
by
unknown
18:31 queued 08:10
created

fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
crap 2
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