web-base/Core/Elements/Style.class.php

18 lines
302 B
PHP
Raw Normal View History

2020-02-09 23:02:19 +01:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Elements;
2020-02-09 23:02:19 +01:00
2020-04-04 01:15:59 +02:00
class Style extends StaticView {
2020-02-09 23:02:19 +01:00
2020-04-03 15:56:04 +02:00
private string $style;
2020-02-09 23:02:19 +01:00
function __construct($style) {
$this->style = $style;
}
2021-04-02 22:47:11 +02:00
function getCode(): string {
// TODO: do we need to escape the content here?
return html_tag("style", [], $this->style, false);
2020-02-09 23:02:19 +01:00
}
}