mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
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.
57 lines
1.0 KiB
PHP
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;
|
|
}
|
|
}
|