for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\View\State;
use Yiisoft\View\Theme;
/**
* @internal
*/
final class ThemeState
{
public function __construct(
private ?Theme $theme = null
) {
}
* Set the specified view theme.
*
* @param Theme|null $theme
* @return $this
public function setTheme(?Theme $theme): self
$this->theme = $theme;
return $this;
* Gets the current theme or null if not set
* @return Theme|null
public function getTheme(): ?Theme
return $this->theme;