-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabelInterface.php
More file actions
64 lines (56 loc) · 1.93 KB
/
Copy pathLabelInterface.php
File metadata and controls
64 lines (56 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
declare(strict_types=1);
namespace PHPForge\Html\Interop;
/**
* Provide methods for handling HTML choice input-related attributes and properties.
*/
interface LabelInterface
{
/**
* Disable the label.
*
* @return static A new instance or clone of the current object with the label disabled.
*/
public function disableLabel(): static;
/**
* Set the current instance as being enclosed by a label.
*
* @param bool $value The value to set.
*
* @return static A new instance of the current class with the specified enclosed by label property.
*/
public function enclosedByLabel(bool $value): static;
/**
* Set the `HTML` label content.
*
* @param RenderInterface|string ...$values The `HTML` label content value.
*
* @return static A new instance of the current class with the specified `HTML` label content.
*/
public function label(string|RenderInterface ...$values): static;
/**
* Set the `HTML` attributes for the label.
*
* @param array $values Attribute values indexed by attribute names.
*
* @return static A new instance of the current class with the specified label attributes.
*/
public function labelAttributes(array $values): static;
/**
* Set the `CSS` class for the label.
*
* @param string $value The value of the class attribute.
* @param bool $override If `true` the value will be overridden.
*
* @return static A new instance of the current class with the specified label class.
*/
public function labelClass(string $value, bool $override = false): static;
/**
* Set the `for` attribute for the label.
*
* @param string|null $value The value for the `for` attribute.
*
* @return static A new instance of the current class with the specified label `for` attribute.
*/
public function labelFor(string|null $value): static;
}