public function __construct($parent, $data) { $this->set_data($data); $this->parent = $parent; parent::_init($parent->get_rest_client(), $parent->get_relative_namespace()); $this->notes = null; }
public function __construct($parent, $data) { $this->PeerId = null; if (isset($data)) { if (is_object($data) && $data->PeerId) { $this->PeerId = $data->PeerId; } if (is_array($data) && isset($data['PeerId'])) { $this->PeerId = $data['PeerId']; } } $this->set_data($data); $this->parent = $parent; parent::_init($parent->get_rest_client(), $parent->get_relative_namespace()); $this->tns = null; }
public function __construct($orders, $data) { if (isset($data)) { if (is_object($data) && $data->Id) { $this->id = $data->Id; } if (is_array($data) && isset($data['Id'])) { $this->id = $data['Id']; } } $this->set_data($data); if (!is_null($orders)) { $this->parent = $orders; parent::_init($orders->get_rest_client(), $orders->get_relative_namespace()); } }
public function __construct($subscriptions, $data) { $this->set_data($data); $this->parent = $subscriptions; parent::_init($subscriptions->get_rest_client(), $subscriptions->get_relative_namespace()); }
public function __construct($account_id, $client = Null, $namespace = 'accounts') { parent::_init($client, $namespace); $this->account_id = $account_id; $this->client = $client; }
public function __construct($client) { $this->client = $client; parent::_init($client, ''); }
public function __construct($client = null, $data) { $this->set_data($data); parent::_init($client, "users"); }