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

16 lines
325 B
PHP
Raw Normal View History

2020-06-20 15:49:53 +02:00
<?php
namespace Elements;
abstract class SimpleBody extends Body {
public function __construct($document) {
parent::__construct($document);
}
public function getCode() {
$content = $this->getContent();
return parent::getCode() . "<body>$content</body>";
}
protected abstract function getContent();
}