8
8
9
9
/**
10
10
* @internal
11
+ * @property HtmlClass $class
11
12
*/
12
13
trait DefaultTags
13
14
{
15
+ public static function __callStatic ($ method , $ args )
16
+ {
17
+ return HtmlTag::make ($ method , $ args );
18
+ }
19
+
14
20
public static function a (string $ uri , Node |string ...$ value ): self
15
21
{
16
22
return HtmlTag::make ('a ' , ...$ value )->setAttribute ('href ' , $ uri );
@@ -24,7 +30,7 @@ public static function heading(int $size, Node|string ...$value): self
24
30
/**
25
31
* Defines a section in a document
26
32
*/
27
- public static function div (HtmlClass |string $ class = null , Node |string ...$ value ): self
33
+ public static function div (HtmlClass |string | null $ class = null , Node |string ...$ value ): self
28
34
{
29
35
$ tag = HtmlTag::make ('div ' , ...$ value );
30
36
if ($ class ) {
@@ -33,22 +39,6 @@ public static function div(HtmlClass|string $class = null, Node|string ...$value
33
39
return $ tag ;
34
40
}
35
41
36
- /**
37
- * Defines an abbreviation or an acronym
38
- */
39
- public static function abbr (Node |string ...$ value ): self
40
- {
41
- return HtmlTag::make ('abbr ' , ...$ value );
42
- }
43
-
44
- /**
45
- * Defines contact information for the author/owner of a document
46
- */
47
- public static function address (Node |string ...$ value ): self
48
- {
49
- return HtmlTag::make ('address ' , ...$ value );
50
- }
51
-
52
42
/**
53
43
* Defines an area inside an image map
54
44
*/
@@ -57,38 +47,6 @@ public static function area(): self
57
47
return HtmlTag::make ('area ' );
58
48
}
59
49
60
- /**
61
- * Defines an article
62
- */
63
- public static function article (Node |string ...$ value ): self
64
- {
65
- return HtmlTag::make ('article ' , ...$ value );
66
- }
67
-
68
- /**
69
- * Defines content aside from the page content
70
- */
71
- public static function aside (Node |string ...$ value ): self
72
- {
73
- return HtmlTag::make ('aside ' , ...$ value );
74
- }
75
-
76
- /**
77
- * Defines embedded sound content
78
- */
79
- public static function audio (Node |string ...$ value ): self
80
- {
81
- return HtmlTag::make ('audio ' , ...$ value );
82
- }
83
-
84
- /**
85
- * Defines bold text
86
- */
87
- public static function b (Node |string ...$ value ): self
88
- {
89
- return HtmlTag::make ('b ' , ...$ value );
90
- }
91
-
92
50
/**
93
51
* Specifies the base URL/target for all relative URLs in a document
94
52
*/
@@ -99,38 +57,6 @@ public static function base(string $uri, string $target): self
99
57
->setAttribute ('target ' , $ target );
100
58
}
101
59
102
- /**
103
- * Isolates a part of text that might be formatted in a different direction from other text outside it
104
- */
105
- public static function bdi (Node |string ...$ value ): self
106
- {
107
- return HtmlTag::make ('bdi ' , ...$ value );
108
- }
109
-
110
- /**
111
- * Overrides the current text direction
112
- */
113
- public static function bdo (Node |string ...$ value ): self
114
- {
115
- return HtmlTag::make ('bdo ' , ...$ value );
116
- }
117
-
118
- /**
119
- * Defines a section that is quoted from another source
120
- */
121
- public static function blockquote (Node |string ...$ value ): self
122
- {
123
- return HtmlTag::make ('blockquote ' , ...$ value );
124
- }
125
-
126
- /**
127
- * Defines the document's body
128
- */
129
- public static function body (Node |string ...$ value ): self
130
- {
131
- return HtmlTag::make ('body ' , ...$ value );
132
- }
133
-
134
60
/**
135
61
* Defines a single line break
136
62
*/
@@ -139,30 +65,6 @@ public static function br(): self
139
65
return HtmlTag::make ('br ' );
140
66
}
141
67
142
- /**
143
- * Defines a clickable button
144
- */
145
- public static function button (Node |string ...$ value ): self
146
- {
147
- return HtmlTag::make ('button ' , ...$ value );
148
- }
149
-
150
- /**
151
- * Used to draw graphics, on the fly, via scripting (usually JavaScript)
152
- */
153
- public static function canvas (Node |string ...$ value ): self
154
- {
155
- return HtmlTag::make ('canvas ' , ...$ value );
156
- }
157
-
158
- /**
159
- * Defines a table caption
160
- */
161
- public static function caption (Node |string ...$ value ): self
162
- {
163
- return HtmlTag::make ('caption ' , ...$ value );
164
- }
165
-
166
68
/**
167
69
* Defines the title of a work
168
70
*/
0 commit comments