16 lines
455 B
PHP
16 lines
455 B
PHP
|
<?php
|
||
|
|
||
|
namespace ByJoby\HTML\Html5\Enums;
|
||
|
|
||
|
/**
|
||
|
* 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;
|
||
|
}
|