Dispute   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
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
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