Namespace and ClassPath rewrites
This commit is contained in:
17
Core/Elements/SimpleBody.class.php
Normal file
17
Core/Elements/SimpleBody.class.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user