Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
unsatisfiableness
/
core
/
lib
/
coinbase
/
src
/
ActiveRecord
:
ActiveRecordContext.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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() { } }