Refactor DNS mocking implementation.
This commit is contained in:
parent
e784137480
commit
7ac1bead49
3 changed files with 27 additions and 34 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue