mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-13 13:52:48 +00:00
83 - Promoting Charges to Objects
This commit is contained in:
23
app/Billing/Charge.php
Normal file
23
app/Billing/Charge.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user