Completed
Push — master ( 8e0025...04518a )
by
05:55
created

Card   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUpdateData() 0 10 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 Ishmael Doss <[email protected]>
18
 * @see https://www.omise.co/cards-api
19
 *
20
 *
21
 * @property string object
22
 * @property string id
23
 * @property boolean livemode
24
 * @property string location
25
 * @property string country
26
 * @property string city
27
 * @property string bank
28
 * @property string postalCode
29
 * @property string financing
30
 * @property string lastDigits
31
 * @property string brand
32
 * @property integer expirationMonth
33
 * @property integer expirationYear
34
 * @property string fingerprint
35
 * @property string name
36
 * @property string created
37
 * @property boolean deleted
38
 */
39
class Card extends Model
40
{
41
    /**
42
     * @var Customer
43
     */
44
    public $customer;
45
46
    /**
47
     * @var string
48
     */
49
    public $number;
50
51
    /**
52
     * @var integer
53
     */
54
    public $securityCode;
55
56
    /**
57
     * @return array
58
     */
59
    public function getUpdateData()
60
    {
61
        return [
62
            'name' => $this->name,
63
            'expiration_month' => $this->expirationMonth,
64
            'expiration_year' => $this->expirationYear,
65
            'postal_code' => $this->postalCode,
66
            'city' => $this->city,
67
        ];
68
    }
69
}
70