public function __construct($messages = array()) { $this->client = Client::Get(); $this->messages = $messages; $this->complete = FALSE; }
public static function attach(&$object) { $client = Client::Get(); $object->client =& $client; if ($object->client == null) { throw new \CatapultApiException("You have not initialized the client yet. Please use: Catapult\\Client(params..)"); } }