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;
* It is a container for the partial files used to build the HTML label for the node
final class DigraphStyle
{
private readonly string $theme;
public static function default(ThemeName $theme): DigraphStyle
return new DigraphStyle($theme, 'partials/_properties.html.twig', 'partials/_methods.html.twig');
}
public static function withoutEmptyBlocks(ThemeName $theme): DigraphStyle
return new DigraphStyle($theme, 'partials/_empty-properties.html.twig', 'partials/_empty-methods.html.twig');
private function __construct(
ThemeName $theme,
private readonly string $properties,
private readonly string $methods
) {
$this->theme = "{$theme->name()}.html.twig";
theme
PhUml\Graphviz\Styles\DigraphStyle
public function properties(): string
return $this->properties;
public function methods(): string
return $this->methods;
public function theme(): string
return $this->theme;