<?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;
}