2020-02-09 23:02:19 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Elements;
|
|
|
|
|
2020-04-03 22:10:21 +02:00
|
|
|
use View;
|
|
|
|
|
2020-04-03 15:56:04 +02:00
|
|
|
class Style extends View {
|
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>";
|
|
|
|
}
|
|
|
|
}
|