Passed
Pull Request — master (#2)
by
02:51
created

Dispute::getUpdateData()   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 0
Metric Value
dl 0
loc 7
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 2
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
namespace PhpMob\Omise\Domain;
13
14
use PhpMob\Omise\Model;
15
16
/**
17
 * @author Saranyu <[email protected]>
18
 *
19
 *
20
 * @property string id
21
 * @property boolean livemode
22
 * @property string location
23
 * @property integer amount
24
 * @property string currency
25
 * @property string status
26
 * @property string message
27
 * @property string metadata
28
 * @property string charge
29
 * @property string created
30
 */
31
class Dispute extends Model
32
{
33
    /**
34
     * @return array
35
     */
36
    public function getUpdateData()
37
    {
38
        return [
39
            'description' => $this->message,
40
            'metadata' => $this->metadata,
41
        ];
42
    }
43
}
44