Example #1
0
 public function __construct($messages = array())
 {
     $this->client = Client::Get();
     $this->messages = $messages;
     $this->complete = FALSE;
 }
Example #2
0
 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..)");
     }
 }