Completed
Push — master ( 6d9ae5...9656aa )
by
18:43 queued 08:49
created

Transfer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCreateData() 0 8 1
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 Prawit <[email protected]>
18
 *
19
 *
20
 * @property string object
21
 * @property string id
22
 * @property string livemode
23
 * @property string location
24
 * @property string recipient
25
 * @property BankAccount bankAccount
26
 * @property boolean sent
27
 * @property boolean paid
28
 * @property integer amount
29
 * @property string currency
30
 * @property integer fee
31
 * @property string failureCode
32
 * @property string failureMessage
33
 * @property string transaction
34
 * @property string created
35
 * @property string metadata
36
 */
37
class Transfer extends Model
38
{
39
    /**
40
     * @return array
41
     */
42
    public function getCreateData()
43
    {
44
        return [
45
            'amount' => $this->amount,
46
            'recipient' => $this->recipient,
47
            'metadata' => $this->metadata,
48
        ];
49
    }
50
51
    public function getUpdateData()
52
    {
53
        return [
54
            'amount' => $this->amount,
55
            'metadata' => $this->metadata,
56
        ];
57
    }
58
}
59