You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
594 B
PHP

<?php
class Paymentwall_Card
{
protected $fields = array();
public function __construct($details = array())
{
$this->fields = (array) $details;
}
public function __get($property)
{
return isset($this->fields[$property]) ? $this->fields[$property] : null;
}
public function getToken()
{
return $this->token;
}
public function getType()
{
return $this->type;
}
public function getAlias()
{
return $this->last4;
}
public function getMonthExpirationDate()
{
return $this->exp_month;
}
public function getYearExpirationDate()
{
return $this->exp_year;
}
}