File "ActiveRecordContext.php"
Full Path: /home/cananyalcin/public_html/core/lib/coinbase/src/ActiveRecord/ActiveRecordContext.php
File size: 599 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Coinbase\Wallet\ActiveRecord;
use Coinbase\Wallet\Client;
use Coinbase\Wallet\Exception\LogicException;
class ActiveRecordContext
{
/** @var Client */
private static $client;
public static function getClient()
{
if (!self::$client) {
throw new LogicException('You must call enableActiveRecord() on your client before calling this method');
}
return self::$client;
}
public static function setClient(Client $client = null)
{
self::$client = $client;
}
private function __construct()
{
}
}