| 1 |
<?php |
| 2 |
|
| 3 |
namespace Better_Payment\Lite\Models; |
| 4 |
|
| 5 |
use Better_Payment\Lite\Admin\DB; |
| 6 |
use Better_Payment\Lite\Model; |
| 7 |
|
| 8 |
/** |
| 9 |
* The Analytics handler database class |
| 10 |
* |
| 11 |
* @since 0.0.1 |
| 12 |
*/ |
| 13 |
class AnalyticsModel extends Model { |
| 14 |
|
| 15 |
/** |
| 16 |
* Initialize the class |
| 17 |
* |
| 18 |
* @since 0.0.1 |
| 19 |
*/ |
| 20 |
public function __construct( ) { |
| 21 |
parent::__construct(); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* Allowed transaction statuses |
| 26 |
* |
| 27 |
* @since 0.0.1 |
| 28 |
*/ |
| 29 |
public function allowed_statuses($type = 'all', $version = 'v2' ){ |
| 30 |
$better_payment_db_obj = new DB(); |
| 31 |
$statuses = $better_payment_db_obj->allowed_statuses($type, $version); |
| 32 |
return $statuses; |
| 33 |
} |
| 34 |
|
| 35 |
} |