Refactor DNS mocking implementation.

This commit is contained in:
netkas 2025-01-08 14:53:48 -05:00
parent e784137480
commit 7ac1bead49
3 changed files with 27 additions and 34 deletions

View file

@ -8,6 +8,7 @@
private string $name;
private ?string $domain;
private ?string $rpcEndpoint;
private array $dnsMocks;
/**
* Constructor that initializes object properties with the provided data.
@ -21,6 +22,7 @@
$this->name = $data['name'];
$this->domain = $data['domain'];
$this->rpcEndpoint = $data['rpc_endpoint'];
$this->dnsMocks = $data['dns_mocks'];
}
/**
@ -55,4 +57,12 @@
{
return $this->rpcEndpoint;
}
/**
* @return array
*/
public function getDnsMocks(): array
{
return $this->dnsMocks;
}
}