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 {
|
2020-02-09 23:02:19 +01:00
|
|
|
return "<style>$this->style</style>";
|
|
|
|
}
|
|
|
|
}
|