mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
29 lines
412 B
PHP
29 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Billing;
|
|
|
|
class Charge
|
|
{
|
|
private $data;
|
|
|
|
public function __construct($data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function amount()
|
|
{
|
|
return $this->data['amount'];
|
|
}
|
|
|
|
public function cardLastFour()
|
|
{
|
|
return $this->data['card_last_four'];
|
|
}
|
|
|
|
public function destination()
|
|
{
|
|
return $this->data['destination'];
|
|
}
|
|
}
|