2023-09-08 23:03:13 +00:00
|
|
|
<?php
|
|
|
|
|
2023-09-10 21:02:51 +00:00
|
|
|
namespace ByJoby\HTML\Helpers;
|
2023-09-08 23:03:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This special enum is used to specify that an attribute is an HTML5 boolean
|
|
|
|
* value. Any attribute set to BooleanAttribute::true will render as a lone tag,
|
|
|
|
* with no value like <tag attribute>. Any attribute set to
|
|
|
|
* BooleanAttribute::false will not render.
|
|
|
|
*/
|
|
|
|
enum BooleanAttribute {
|
|
|
|
/** Render an attribute with no value */
|
|
|
|
case true;
|
|
|
|
/** Do not render this attribute */
|
|
|
|
case false;
|
|
|
|
}
|