nulib/php/tests/sys/impl/html.php

15 lines
473 B
PHP
Raw Normal View History

2023-12-30 18:50:40 +04:00
<?php
namespace nulib\sys\impl;
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); }
}