| 1 | <?php |
||
| 15 | final class Arbitrary extends AbstractElement |
||
| 16 | { |
||
| 17 | private $name; |
||
| 18 | |||
| 19 | public function __construct(string $name, AttributeSet $attributes = null, ElementSet $children = null) |
||
| 25 | |||
| 26 | public function withAttribute(string $name, string $value = null): Arbitrary |
||
| 36 | |||
| 37 | public function withChild(ElementInterface $element): Arbitrary |
||
| 41 | } |
||
| 42 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: