servers->resolve((int) $row['dns_manager_server_id']), isCreated: (int) $row['is_created'], pleskId: $row['plesk_id'] !== null ? (int) $row['plesk_id'] : null, createdAt: $this->nullableDate($row['created_at'] ?? null), updatedAt: $this->nullableDate($row['updated_at'] ?? null), ); } private function nullableDate(?string $value): ?string { if (! $value || (int) substr($value, 0, 4) < 1970) { return null; } return $value; } }