Add toString methods

This commit is contained in:
2024-09-27 08:10:37 +02:00
parent 462d2350f0
commit b56beba4ce
2 changed files with 31 additions and 6 deletions

View File

@@ -15,4 +15,9 @@ readonly class Keyword
public string $value,
public ?string $comment,
) {}
public function toString(): string
{
return "{$this->name}={$this->value}/{$this->comment}";
}
}