/**
  * PreparedQueryDefinition constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->Service = new ServiceQuery((array) $this->Service);
     $this->DNS = new QueryDNSOptions((array) $this->DNS);
     $this->Template = new QueryTemplate((array) $this->Template);
 }
Esempio n. 2
0
 /**
  * @inheritDoc
  */
 public function __construct(array $data = array(), $_decodeValue = false)
 {
     parent::__construct($data);
     if ($_decodeValue && isset($this->Payload)) {
         $this->Payload = base64_decode($this->Payload);
     }
 }
 /**
  * @inheritDoc
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if (isset($this->Servers)) {
         for ($i = 0, $cnt = count($this->Servers); $i < $cnt; $i++) {
             $this->Servers[$i] = new RaftServer((array) $this->Servers[$i]);
         }
     }
 }
 /**
  * CoordinateDatacenterMap constructor.
  *
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     for ($i = 0, $cnt = count($this->Coordinates); $i < $cnt; $i++) {
         if (!$this->Coordinates[$i] instanceof Coordinate) {
             $this->Coordinates[$i] = new Coordinate((array) $this->Coordinates[$i]);
         }
     }
 }
 /**
  * CatalogRegistration constructor.
  *
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if (!$this->Service instanceof AgentService) {
         $this->Service = new AgentService((array) $this->Service);
     }
     if (!$this->Check instanceof AgentCheck) {
         $this->Check = new AgentCheck((array) $this->Check);
     }
 }
 /**
  * ServiceEntry constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->Service = new AgentService((array) $this->Service);
     if (isset($this->Checks)) {
         for ($i = 0, $cnt = count($this->Checks); $i < $cnt; $i++) {
             $this->Checks[$i] = new AgentCheck((array) $this->Checks[$i]);
         }
     }
 }
 /**
  * PreparedQueryExecuteResponse constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->DNS = new QueryDNSOptions((array) $this->DNS);
     if (isset($this->Nodes)) {
         for ($i = 0, $cnt = count($this->Nodes); $i < $cnt; $i++) {
             $this->Nodes[$i] = new ServiceEntry((array) $this->Nodes[$i]);
         }
     }
 }
Esempio n. 8
0
 /**
  * AgentSelf constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if (!$this->Config instanceof AgentSelfConfig) {
         $this->Config = new AgentSelfConfig((array) $this->Config);
     }
     if (!$this->Coord instanceof AgentSelfCoord) {
         $this->Coord = new AgentSelfCoord((array) $this->Coord);
     }
     if (!$this->Member instanceof AgentMember) {
         $this->Member = new AgentMember((array) $this->Member);
     }
 }
 /**
  * AgentServiceRegistration constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if (!$this->Check instanceof AgentCheck) {
         $this->Check = new AgentCheck((array) $this->Check);
     }
     for ($i = 0, $cnt = count($this->Checks); $i < $cnt; $i++) {
         if ($this->Checks[$i] instanceof AgentCheck) {
             continue;
         }
         $this->Checks[$i] = new AgentCheck($this->Checks[$i]);
     }
 }
Esempio n. 10
0
 /**
  * ServiceQuery constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->Failover = new QueryDatacenterOptions((array) $this->Failover);
 }
 /**
  * CoordinateEntry constructor.
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     $this->Coord = new Coordinate((array) $this->Coord);
 }