gl-website-deployer/vendor/doctrine/rst-parser/lib/Nodes/ImageNode.php

35 lines
594 B
PHP
Raw Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\Nodes;
final class ImageNode extends Node
{
/** @var string */
private $url;
/** @var string[] */
private $options;
/** @param string[] $options */
public function __construct(string $url, array $options = [])
{
parent::__construct();
$this->url = $url;
$this->options = $options;
}
public function getUrl(): string
{
return $this->url;
}
/** @return string[] */
public function getOptions(): array
{
return $this->options;
}
}