1 | <?php |
||
15 | final class ObjectEmbed 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): ObjectEmbed |
||
34 | |||
35 | public function withChild(ElementInterface $element): ObjectEmbed |
||
39 | |||
40 | public function withData(string $url): ObjectEmbed |
||
44 | |||
45 | public function withForm(string $id): ObjectEmbed |
||
49 | |||
50 | public function withHeight(int $pixels): ObjectEmbed |
||
54 | |||
55 | public function withName(string $name): ObjectEmbed |
||
59 | |||
60 | /** |
||
61 | * @param string $mime |
||
62 | * @return ObjectEmbed |
||
63 | * @see http://www.iana.org/assignments/media-types/media-types.xhtml |
||
64 | */ |
||
65 | public function withType(string $mime): ObjectEmbed |
||
69 | |||
70 | public function withTypeMustMatch(): ObjectEmbed |
||
74 | |||
75 | public function withUseMap(string $name): ObjectEmbed |
||
79 | |||
80 | public function withWidth(int $pixels): ObjectEmbed |
||
84 | } |
||
85 |
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: