web-base/Core/Elements/SimpleBody.class.php

17 lines
341 B
PHP

<?php
namespace Core\Elements;
abstract class SimpleBody extends Body {
public function __construct($document) {
parent::__construct($document);
}
public function getCode(): string {
$content = $this->getContent();
return html_tag("body", [], $content, false);
}
protected abstract function getContent(): string;
}