2020-02-09 23:02:19 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Elements;
|
|
|
|
|
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 {
|
2022-06-14 10:30:35 +02:00
|
|
|
// TODO: do we need to escape the content here?
|
|
|
|
return html_tag("style", [], $this->style, false);
|
2020-02-09 23:02:19 +01:00
|
|
|
}
|
|
|
|
}
|