for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PhpMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhpMob\Omise\Domain;
use PhpMob\Omise\Model;
/**
* @author Ishmael Doss <[email protected]>
* @see https://www.omise.co/cards-api
* @property string object
* @property string id
* @property boolean livemode
* @property string location
* @property string country
* @property string city
* @property string bank
* @property string postalCode
* @property string financing
* @property string lastDigits
* @property string brand
* @property integer expirationMonth
* @property integer expirationYear
* @property string fingerprint
* @property string name
* @property string created
* @property boolean deleted
class Card extends Model
{
* @var Customer
public $customer;
* @var string
public $number;
* @var integer
public $securityCode;
* @return array
public function getUpdateData()
return [
'name' => $this->name,
'expiration_month' => $this->expirationMonth,
'expiration_year' => $this->expirationYear,
'postal_code' => $this->postalCode,
'city' => $this->city,
];
}