public function getTaskProperties($domain, $taskId)
{
$domain = (string) $domain;
if (!$domain) {
throw new BadMethodCallException('Parameter $domain is missing.');
}
$taskId = (string) $taskId;
if (!$taskId) {
throw new BadMethodCallException('Parameter $taskId is missing.');
}
try {
$r = $this->get('dedicated/server/' . $domain . '/task/' . $taskId)->send();
} catch (\Exception $e) {
throw new ServerException($e->getMessage(), $e->getCode(), $e);
}
return $r->getBody(true);
}