web-base/core/Elements/Style.class.php
2021-04-02 22:47:11 +02:00

17 lines
232 B
PHP

<?php
namespace Elements;
class Style extends StaticView {
private string $style;
function __construct($style) {
$this->style = $style;
}
function getCode(): string {
return "<style>$this->style</style>";
}
}