| 1 | <?php |
||
| 14 | final class Source extends AbstractElement |
||
| 15 | { |
||
| 16 | public function __construct(AttributeSet $attributes = null) |
||
| 21 | |||
| 22 | public function withAttribute(string $name, string $value = null): Source |
||
| 32 | |||
| 33 | public function withSrc(string $url): Source |
||
| 37 | |||
| 38 | public function withType(string $mime): Source |
||
| 42 | } |
||
| 43 |
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: