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

Recipient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCreateData() 0 12 1
A getUpdateData() 0 4 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 boolean verified
25
 * @property boolean active
26
 * @property string name
27
 * @property string email
28
 * @property string description
29
 * @property string type
30
 * @property string taxId
31
 * @property BankAccount bankAccount
32
 * @property string failureCode
33
 * @property string created
34
 * @property string metadata
35
 */
36
class Recipient extends Model
37
{
38
    /**
39
     * @return array
40
     */
41
    public function getCreateData()
42
    {
43
        return [
44
            'name' => $this->name,
45
            'email' => $this->email,
46
            'description' => $this->description,
47
            'type' => $this->type,
48
            'tax_id' => $this->taxId,
49
            'bank_account' => $this->bankAccount,
50
            'metadata' => $this->metadata,
51
        ];
52
    }
53
54
    /**
55
     * @return array
56
     */
57
    public function getUpdateData()
58
    {
59
        return $this->getCreateData();
60
    }
61
}
62