define link tag constant

This commit is contained in:
yggverse 2024-06-24 03:30:15 +03:00
parent 7f830f41bc
commit 11925c5044

View file

@ -6,6 +6,8 @@ namespace Yggverse\Gemtext\Entity;
class Link
{
public const TAG = '=>';
private string $_address;
private ?string $_alt;
@ -100,7 +102,7 @@ class Link
public function toString(): string
{
$parts = [
'=>',
self::TAG,
$this->getAddress()
];