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

Dispute   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 13
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUpdateData() 0 7 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
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