Backup #458
| ID | 458 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/UseCases/Prompts/PromptDTO.php |
| Version | 1 |
| Typ |
modified |
| Größe | 770 B |
| Hash | 08ecdc75028c773b129271e8374dc749e5fd8811aef3fe8783ea0e80fbaca14a |
| Datum | 2025-12-22 10:29:40 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php
namespace UseCases\Prompts;
final class PromptDTO
{
public function __construct(
public readonly ?int $id,
public readonly string $name,
public readonly string $version,
public readonly string $content,
public readonly bool $isActive,
public readonly int $criticCount = 0,
) {
}
public static function fromArray(array $data): self
{
return new self(
id: isset($data['id']) ? (int) $data['id'] : null,
name: $data['name'] ?? '',
version: $data['version'] ?? '1.0',
content: $data['content'] ?? '',
isActive: (bool) ($data['is_active'] ?? false),
criticCount: (int) ($data['critic_count'] ?? 0),
);
}
}
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 730 |
3 |
modified |
1.4 KB |
2025-12-23 07:57 |
| 459 |
2 |
modified |
1.1 KB |
2025-12-22 10:30 |
| 458 |
1 |
modified |
770 B |
2025-12-22 10:29 |
← Zurück zur Übersicht