for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
namespace PhUml\Graphviz\Styles;
final class ThemeName
{
/** @var string[] */
private const VALID_NAMES = ['phuml', 'php', 'classic'];
private readonly string $name;
public function __construct(string $name)
if (! \in_array($name, self::VALID_NAMES, true)) {
throw UnknownTheme::named($name, self::VALID_NAMES);
}
$this->name = $name;
name
PhUml\Graphviz\Styles\ThemeName
public function name(): string
return $this->name;