nur-sery/tests/php/content/impl/html.php

15 lines
484 B
PHP
Raw Normal View History

2023-12-30 18:40:23 +04:00
<?php
2023-12-31 18:54:10 +04:00
namespace nur\sery\php\content\impl;
2023-12-30 18:40:23 +04:00
class html {
const H1 = [self::class, "h1"];
const DIV = [self::class, "div"];
const P = [self::class, "p"];
const SPAN = [self::class, "span"];
static function h1($contents) { return new ATag("h1", $contents); }
static function div($contents) { return new ATag("div", $contents); }
static function p($contents) { return new ATag("p", $contents); }
static function span($contents) { return new ATag("span", $contents); }
}