1 | <?php |
||
15 | final class TextArea extends AbstractElement implements ParentElementInterface |
||
16 | { |
||
17 | public function __construct(AttributeSet $attributes = null, ElementSet $children = null) |
||
23 | |||
24 | public function withAttribute(string $name, string $value = null): TextArea |
||
34 | |||
35 | public function withChild(ElementInterface $element): TextArea |
||
39 | |||
40 | public function withAutoComplete(string $offOn): TextArea |
||
44 | |||
45 | public function withAutoFocus(): TextArea |
||
49 | |||
50 | public function withCols(int $charWidth = 20): TextArea |
||
54 | |||
55 | public function withDisabled(): TextArea |
||
59 | |||
60 | public function withForm(string $id): TextArea |
||
64 | |||
65 | public function withMaxLength(int $max): TextArea |
||
69 | |||
70 | public function withMinLength(int $min): TextArea |
||
74 | |||
75 | public function withName(string $name): TextArea |
||
79 | |||
80 | public function withPlaceholder(string $placeholder): TextArea |
||
84 | |||
85 | public function withReadOnly(): TextArea |
||
89 | |||
90 | public function withRequired(): TextArea |
||
94 | |||
95 | public function withRows(int $rows): TextArea |
||
99 | |||
100 | public function withSelectionDirection(string $direction): TextArea |
||
104 | |||
105 | public function withSelectionEnd(int $index): TextArea |
||
109 | |||
110 | public function withSelectionStart(int $index): TextArea |
||
114 | |||
115 | public function withSpellCheck(string $spellcheck): TextArea |
||
119 | |||
120 | public function withWrap(string $wrap = 'soft'): TextArea |
||
124 | } |
||
125 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: