gl-website-deployer/vendor/doctrine/rst-parser/lib/Parser/Link.php

43 lines
701 B
PHP
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\Parser;
final class Link
{
public const TYPE_LINK = 'link';
public const TYPE_ANCHOR = 'anchor';
/** @var string */
private $name;
/** @var string */
private $url;
/** @var string */
private $type;
public function __construct(string $name, string $url, string $type)
{
$this->name = $name;
$this->url = $url;
$this->type = $type;
}
public function getName(): string
{
return $this->name;
}
public function getUrl(): string
{
return $this->url;
}
public function getType(): string
{
return $this->type;
}
}