public function __construct($uuid) { if (empty($this->xsApi)) { parent::__construct(); } if (empty($this->xsApi)) { throw new Exception('Unable to connect to XenServer host. Exiting.'); } $this->setVmUuid($uuid); }
public function __construct($uuid) { $this->setUuid($uuid); parent::__construct(); $this->data = $this->getSnapshot(); }