$this->displayId, 'fullId' => $this->fullId, 'sourceHint' => $this->sourceHint, 'copyable' => $this->copyable, 'defaultCollapsed' => $this->defaultCollapsed, ]; } private static function displayId(string $fullId): ?string { $normalized = preg_replace('/[^a-zA-Z0-9]/', '', $fullId); if (! is_string($normalized) || $normalized === '') { return null; } if (mb_strlen($normalized) <= 8) { return $normalized; } return '…'.mb_substr($normalized, -8); } }