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

15 lines
476 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"];
2024-06-23 15:07:50 +04:00
static function h1($content) { return new ATag("h1", $content); }
static function div($content) { return new ATag("div", $content); }
static function p($content) { return new ATag("p", $content); }
static function span($content) { return new ATag("span", $content); }
2023-12-30 18:40:23 +04:00
}