enabled = (bool)$data['enabled']; $this->name = $data['name']; $this->domain = $data['domain']; $this->rpcEndpoint = $data['rpc_endpoint']; } /** * Checks if the current object is enabled. * * @return bool True if the object is enabled, false otherwise. */ public function isEnabled(): bool { return $this->enabled; } public function getName(): string { return $this->name; } /** * Retrieves the domain. * * @return string|null The domain. */ public function getDomain(): ?string { return $this->domain; } /** * @return string|null */ public function getRpcEndpoint(): ?string { return $this->rpcEndpoint; } }