Files
Christophe Coevoet 495b4ac8f4 Inline the static website generator in the website repo
Maintaining a standalone static website generator project that is not
reused outside our website adds maintenance overhead. For instance,
support for using `phpdocumentor/guides` was implemented in the website
repo rather than the standalone generator package, which was still using
the `doctrine/rst-parser` package that we want to abandon.
2025-10-09 21:46:37 +02:00

57 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
namespace Doctrine\Website\StaticGenerator;
class Site
{
/** @param string[] $keywords */
public function __construct(
private string $title,
private string $subtitle,
private string $url,
private array $keywords,
private string $description,
private string $env,
private string $googleAnalyticsTrackingId,
) {
}
public function getTitle(): string
{
return $this->title;
}
public function getSubtitle(): string
{
return $this->subtitle;
}
public function getUrl(): string
{
return $this->url;
}
/** @return string[] */
public function getKeywords(): array
{
return $this->keywords;
}
public function getDescription(): string
{
return $this->description;
}
public function getEnv(): string
{
return $this->env;
}
public function googleAnalyticsTrackingId(): string
{
return $this->googleAnalyticsTrackingId;
}
}