11<?php
2+
23/**
34 * This file is auto-generated. Do not edit manually.
45 *
56 * Article - The article element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable.
6- *
7+ *
78 * @generated 2025-12-01 08:37:28
8- * @category HTML
9- * @package vardumper/extended-htmldocument
109 * @subpackage Html\Element\Block
1110 * @link https://vardumper.github.io/extended-htmldocument/
1211 * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article
1312 */
13+
1414namespace Html \Element \Block ;
1515
1616use Html \Element \BlockElement ;
17- use Html \Element \Block \Aside ;
18- use Html \Element \Block \Audio ;
19- use Html \Element \Block \Blockquote ;
20- use Html \Element \Block \Body ;
21- use Html \Element \Block \DefinitionList ;
22- use Html \Element \Block \DeletedText ;
23- use Html \Element \Block \Division ;
24- use Html \Element \Block \Embed ;
25- use Html \Element \Block \Figure ;
26- use Html \Element \Block \Form ;
27- use Html \Element \Block \Heading1 ;
28- use Html \Element \Block \Heading2 ;
29- use Html \Element \Block \Heading3 ;
30- use Html \Element \Block \Heading4 ;
31- use Html \Element \Block \Heading5 ;
32- use Html \Element \Block \Heading6 ;
33- use Html \Element \Block \InlineFrame ;
34- use Html \Element \Block \InsertedText ;
35- use Html \Element \Block \Main ;
36- use Html \Element \Block \Map ;
37- use Html \Element \Block \Navigation ;
38- use Html \Element \Block \ObjectElement ;
39- use Html \Element \Block \OrderedList ;
40- use Html \Element \Block \Paragraph ;
41- use Html \Element \Block \Picture ;
42- use Html \Element \Block \PreformattedText ;
43- use Html \Element \Block \Section ;
44- use Html \Element \Block \Table ;
45- use Html \Element \Block \UnorderedList ;
46- use Html \Element \Block \Video ;
4717use Html \Element \Inline \Abbreviation ;
4818use Html \Element \Inline \Anchor ;
4919use Html \Element \Inline \BidirectionalIsolation ;
7848use Html \Enum \AriaLiveEnum ;
7949use Html \Enum \AriaRelevantEnum ;
8050use Html \Enum \RoleEnum ;
81- use Html \Trait \GlobalAttribute ;
8251use Html \Mapping \Element ;
52+ use Html \Trait \GlobalAttribute ;
53+ use InvalidArgumentException ;
8354
8455#[Element('article ' )]
8556class Article extends BlockElement
@@ -103,6 +74,7 @@ class Article extends BlockElement
10374 use GlobalAttribute \TitleTrait;
10475 use GlobalAttribute \TranslateTrait;
10576 use GlobalAttribute \PopoverTrait;
77+
10678 /**
10779 * The HTML element name
10880 */
@@ -128,7 +100,7 @@ class Article extends BlockElement
128100 * @var array<string>
129101 */
130102 public static array $ childOf = [
131- Article ::class,
103+ self ::class,
132104 Aside::class,
133105 Blockquote::class,
134106 Body::class,
@@ -147,7 +119,7 @@ class Article extends BlockElement
147119 Anchor::class,
148120 Abbreviation::class,
149121 Area::class,
150- Article ::class,
122+ self ::class,
151123 Audio::class,
152124 Bold::class,
153125 BidirectionalIsolation::class,
@@ -200,64 +172,74 @@ class Article extends BlockElement
200172 WordBreakOpportunity::class,
201173 ];
202174
203-
204- /** Defines the semantic purpose of an element for assistive technologies. */
175+ /**
176+ * Defines the semantic purpose of an element for assistive technologies.
177+ */
205178 protected ?RoleEnum $ role = null ;
206179
207- /** Identifies the element(s) whose contents or presence are controlled by this element. Value is a list of IDs separated by a space */
180+ /**
181+ * Identifies the element(s) whose contents or presence are controlled by this element. Value is a list of IDs separated by a space
182+ */
208183 protected ?string $ ariaControls = null ;
209184
210- /** Identifies the element(s) that describes the object. Value is a list of IDs separated by a space */
185+ /**
186+ * Identifies the element(s) that describes the object. Value is a list of IDs separated by a space
187+ */
211188 protected ?string $ ariaDescribedby = null ;
212189
213- /** Identifies the element(s) that labels the current element. Value is a list of IDs separated by a space */
190+ /**
191+ * Identifies the element(s) that labels the current element. Value is a list of IDs separated by a space
192+ */
214193 protected ?string $ ariaLabelledby = null ;
215194
216- /**
195+ /**
217196 * The aria-busy attribute is used to indicate whether an element is currently busy or not.
218- * @category HTML attribute
219197 * @example false
220198 */
221199 protected ?AriaBusyEnum $ ariaBusy = null ;
222200
223- /** References an element that provides additional details about the current element. */
201+ /**
202+ * References an element that provides additional details about the current element.
203+ */
224204 protected ?string $ ariaDetails = null ;
225205
226- /** Defines keyboard shortcuts available for the element. */
206+ /**
207+ * Defines keyboard shortcuts available for the element.
208+ */
227209 protected ?string $ ariaKeyshortcuts = null ;
228210
229- /** Provides a human-readable custom role description for assistive technologies. */
211+ /**
212+ * Provides a human-readable custom role description for assistive technologies.
213+ */
230214 protected ?string $ ariaRoledescription = null ;
231215
232- /**
216+ /**
233217 * Defines how updates to the element should be announced to screen readers.
234- * @category HTML attribute
235218 * @example off
236219 */
237220 protected ?AriaLiveEnum $ ariaLive = null ;
238221
239- /**
222+ /**
240223 * Indicates what content changes should be announced in a live region.
241- * @category HTML attribute
242224 * @example additions text
243225 */
244226 protected ?AriaRelevantEnum $ ariaRelevant = null ;
245227
246- /**
228+ /**
247229 * Indicates whether assistive technologies should present the entire region as a whole when changes occur.
248- * @category HTML attribute
249230 * @example false
250231 */
251232 protected ?AriaAtomicEnum $ ariaAtomic = null ;
252233
253- /** Establishes ownership relationships between elements. Value is a space-separated list of IDs. */
234+ /**
235+ * Establishes ownership relationships between elements. Value is a space-separated list of IDs.
236+ */
254237 protected ?string $ ariaOwns = null ;
255238
256-
257239 public function setRole (string |RoleEnum $ role ): static
258240 {
259241 if (\is_string ($ role )) {
260- $ role = RoleEnum::tryFrom ($ role ) ?? throw new \ InvalidArgumentException (" Invalid value for \ $role. " );
242+ $ role = RoleEnum::tryFrom ($ role ) ?? throw new InvalidArgumentException (' Invalid value for $role. ' );
261243 }
262244 $ this ->role = $ role ;
263245 $ this ->delegated ->setAttribute ('role ' , (string ) $ role ->value );
@@ -309,7 +291,9 @@ public function getAriaLabelledby(): ?string
309291 public function setAriaBusy (string |AriaBusyEnum $ ariaBusy ): static
310292 {
311293 if (\is_string ($ ariaBusy )) {
312- $ ariaBusy = AriaBusyEnum::tryFrom ($ ariaBusy ) ?? throw new \InvalidArgumentException ("Invalid value for \$ariaBusy. " );
294+ $ ariaBusy = AriaBusyEnum::tryFrom ($ ariaBusy ) ?? throw new InvalidArgumentException (
295+ 'Invalid value for $ariaBusy. '
296+ );
313297 }
314298 $ this ->ariaBusy = $ ariaBusy ;
315299 $ this ->delegated ->setAttribute ('aria-busy ' , (string ) $ ariaBusy ->value );
@@ -361,7 +345,9 @@ public function getAriaRoledescription(): ?string
361345 public function setAriaLive (string |AriaLiveEnum $ ariaLive ): static
362346 {
363347 if (\is_string ($ ariaLive )) {
364- $ ariaLive = AriaLiveEnum::tryFrom ($ ariaLive ) ?? throw new \InvalidArgumentException ("Invalid value for \$ariaLive. " );
348+ $ ariaLive = AriaLiveEnum::tryFrom ($ ariaLive ) ?? throw new InvalidArgumentException (
349+ 'Invalid value for $ariaLive. '
350+ );
365351 }
366352 $ this ->ariaLive = $ ariaLive ;
367353 $ this ->delegated ->setAttribute ('aria-live ' , (string ) $ ariaLive ->value );
@@ -377,7 +363,9 @@ public function getAriaLive(): ?AriaLiveEnum
377363 public function setAriaRelevant (string |AriaRelevantEnum $ ariaRelevant ): static
378364 {
379365 if (\is_string ($ ariaRelevant )) {
380- $ ariaRelevant = AriaRelevantEnum::tryFrom ($ ariaRelevant ) ?? throw new \InvalidArgumentException ("Invalid value for \$ariaRelevant. " );
366+ $ ariaRelevant = AriaRelevantEnum::tryFrom ($ ariaRelevant ) ?? throw new InvalidArgumentException (
367+ 'Invalid value for $ariaRelevant. '
368+ );
381369 }
382370 $ this ->ariaRelevant = $ ariaRelevant ;
383371 $ this ->delegated ->setAttribute ('aria-relevant ' , (string ) $ ariaRelevant ->value );
@@ -393,7 +381,9 @@ public function getAriaRelevant(): ?AriaRelevantEnum
393381 public function setAriaAtomic (string |AriaAtomicEnum $ ariaAtomic ): static
394382 {
395383 if (\is_string ($ ariaAtomic )) {
396- $ ariaAtomic = AriaAtomicEnum::tryFrom ($ ariaAtomic ) ?? throw new \InvalidArgumentException ("Invalid value for \$ariaAtomic. " );
384+ $ ariaAtomic = AriaAtomicEnum::tryFrom ($ ariaAtomic ) ?? throw new InvalidArgumentException (
385+ 'Invalid value for $ariaAtomic. '
386+ );
397387 }
398388 $ this ->ariaAtomic = $ ariaAtomic ;
399389 $ this ->delegated ->setAttribute ('aria-atomic ' , (string ) $ ariaAtomic ->value );
@@ -417,6 +407,4 @@ public function getAriaOwns(): ?string
417407 {
418408 return $ this ->ariaOwns ;
419409 }
420-
421-
422410}
0 commit comments