web-base/core/Elements/Style.class.php
2020-04-03 22:10:21 +02:00

19 lines
229 B
PHP

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