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

Transfer::getUpdateData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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