1 | <?php |
||
15 | final class Heading extends AbstractElement implements ParentElementInterface |
||
16 | { |
||
17 | private $level; |
||
18 | |||
19 | public function __construct(int $level, AttributeSet $attributes = null, ElementSet $children = null) |
||
26 | |||
27 | public function withAttribute(string $name, string $value = null): Heading |
||
37 | |||
38 | public function withChild(ElementInterface $element): Heading |
||
42 | } |
||
43 |
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: