2020-06-20 15:49:53 +02:00
|
|
|
<?php
|
|
|
|
|
2022-11-18 18:06:46 +01:00
|
|
|
namespace Core\Elements;
|
2020-06-20 15:49:53 +02:00
|
|
|
|
|
|
|
abstract class SimpleBody extends Body {
|
2021-04-02 21:58:06 +02:00
|
|
|
|
2020-06-20 15:49:53 +02:00
|
|
|
public function __construct($document) {
|
|
|
|
parent::__construct($document);
|
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getCode(): string {
|
2020-06-20 15:49:53 +02:00
|
|
|
$content = $this->getContent();
|
2022-06-14 10:30:35 +02:00
|
|
|
return html_tag("body", [], $content, false);
|
2020-06-20 15:49:53 +02:00
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
protected abstract function getContent(): string;
|
2020-06-20 15:49:53 +02:00
|
|
|
}
|