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;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getCode() {
|
|
|
|
return "<style>$this->style</style>";
|
|
|
|
}
|
|
|
|
}
|