diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c28f39..84805e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ # 0.1.1 Under development +- Enh #3: Implement interface `RenderInterface::class` (@terabytesoftw) + ## 0.1.0 February 27, 2024 - Initial release diff --git a/src/InputInterface.php b/src/InputInterface.php index 0098556..198bbfe 100644 --- a/src/InputInterface.php +++ b/src/InputInterface.php @@ -7,8 +7,17 @@ /** * Provide methods for handling HTML input-related attributes. */ -interface InputInterface +interface InputInterface extends RenderInterface { + /** + * Set the `HTML` attributes. + * + * @param array $values Attribute values indexed by attribute names. + * + * @return static A new instance of the current class with the specified attributes. + */ + public function attributes(array $values): static; + /** * Set the `CSS` `HTML` class attribute. * @@ -21,15 +30,6 @@ interface InputInterface */ public function class(string $value, bool $override = false): static; - /** - * Set the `HTML` attributes. - * - * @param array $values Attribute values indexed by attribute names. - * - * @return static A new instance of the current class with the specified attributes. - */ - public function attributes(array $values): static; - /** * Generate the id and name attributes for the field. * diff --git a/src/RenderInterface.php b/src/RenderInterface.php new file mode 100644 index 0000000..7740bda --- /dev/null +++ b/src/RenderInterface.php @@ -0,0 +1,22 @@ +