public function setCaInfo($path) { if (file_exists($path)) { $this->cainfo = $path; } else { throw new CloudApiException("{$path} does not exist."); } return $this; }