Dispute::getUpdateData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the PhpMob package.
5
 *
6
 * (c) Ishmael Doss <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace PhpMob\Omise\Domain;
15
16
use PhpMob\Omise\Model;
17
18
/**
19
 * @author Saranyu <[email protected]>
20
 *
21
 * @property string id
22
 * @property bool livemode
23
 * @property string location
24
 * @property int amount
25
 * @property string currency
26
 * @property string status
27
 * @property string message
28
 * @property string metadata
29
 * @property string charge
30
 * @property string created
31
 */
32
class Dispute extends Model
33
{
34
    const EVENT_CREATE = 'charge.create';
35
    const EVENT_UPDATE = 'charge.update';
36
    const EVENT_CLOSE = 'charge.close';
37
38
    /**
39
     * @return array
40
     */
41 1
    public function getUpdateData()
42
    {
43
        return [
44 1
            'description' => $this->message,
45 1
            'metadata' => $this->metadata,
46
        ];
47
    }
48
}
49