web-base/core/Elements/SimpleBody.class.php
2021-04-02 22:24:22 +02:00

17 lines
342 B
PHP

<?php
namespace Elements;
abstract class SimpleBody extends Body {
public function __construct($document) {
parent::__construct($document);
}
public function getCode(): string {
$content = $this->getContent();
return parent::getCode() . "<body>$content</body>";
}
protected abstract function getContent(): string;
}