licenseKey = $licenseKey; $this->identityId = $identityId; } /** * @return LicenseReferencePayload */ public function toArray(): array { return array_filter([ 'license_key' => $this->licenseKey, 'identity_id' => $this->identityId, ], static fn ($value): bool => $value !== null); } }