mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
define link tag constant
This commit is contained in:
parent
7f830f41bc
commit
11925c5044
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue