gl-website-deployer/vendor/doctrine/rst-parser/lib/Event/OnLinkParsedEvent.php

44 lines
841 B
PHP
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\Event;
use Doctrine\Common\EventArgs;
final class OnLinkParsedEvent extends EventArgs
{
public const ON_LINK_PARSED = 'onLinkParsed';
/** @var string */
private $url;
/** @var string */
private $linkType;
/** @var string */
private $currentFileName;
public function __construct(string $url, string $linkType, string $currentFileName)
{
$this->url = $url;
$this->linkType = $linkType;
$this->currentFileName = $currentFileName;
}
public function getUrl(): string
{
return $this->url;
}
public function getLinkType(): string
{
return $this->linkType;
}
public function getCurrentFileName(): string
{
return $this->currentFileName;
}
}