$value) { if (is_array($value)) { // $value is an array foreach ($value as $k => $v) { $this->{$key}[] = RdapObject::KeyToObject($key, $v); } } else { // $value is not an array, just create a var with this value (startAddress endAddress ipVersion etc etc) $this->{$key} = $value; } } } else { throw new RdapException('Response object could not be validated as proper JSON'); } } /** * @return string */ final public function getHandle(): string { return $this->handle; } /** * @return RdapConformance[]|null */ final public function getConformance(): ?array { return $this->rdapConformance; } /** * @return string */ final public function getName(): string { return $this->name; } /** * @return string */ final public function getType(): string { return $this->type; } /** * @return RdapEntity[]|null */ final public function getEntities(): ?array { return $this->entities; } /** * @return RdapLink[]|null */ final public function getLinks(): ?array { return $this->links; } /** * @return RdapRemark[]|null */ final public function getRemarks(): ?array { return $this->remarks; } /** * @return RdapNotice[]|null */ final public function getNotices(): ?array { return $this->notices; } /** * @return string|null */ final public function getPort43(): ?string { return $this->port43; } /** * @return RdapNameserver[]|null */ final public function getNameservers(): ?array { return $this->nameservers; } /** * @return RdapStatus[]|null */ final public function getStatus(): ?array { return $this->status; } /** * @return RdapEvent[]|null */ final public function getEvents(): ?array { return $this->events; } /** * @return string|null */ final public function getClassname(): ?string { return $this->objectClassName; } /** * @return string|null */ final public function getLDHName(): ?string { return $this->ldhName; } /** * @return RdapSecureDNS[]|null */ final public function getSecureDNS(): ?array { return $this->secureDNS; } /** * @return int|null */ final public function getErrorCode(): ?int { return $this->errorCode; } /** * @return string|null */ final public function getTitle(): ?string { return $this->title; } }