27 lines
529 B
PHP
27 lines
529 B
PHP
<?php
|
|
/**
|
|
* @package AKSRT
|
|
*/
|
|
|
|
namespace AKSRT\Payment;
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
class OrderRepository {
|
|
use OrderRepositoryCore;
|
|
use OrderRepositoryAdmin;
|
|
|
|
private static $instance = null;
|
|
private int $status_transaction_depth = 0;
|
|
/** @var array<int,array{hook:string,args:array<int,mixed>}> */
|
|
private array $status_after_commit_events = [];
|
|
|
|
|
|
|
|
public static function get_instance(): self {
|
|
if (null === self::$instance) self::$instance = new self();
|
|
return self::$instance;
|
|
}
|
|
|
|
}
|