1 | <?php |
||
24 | trait ImmutableComponentTrait |
||
25 | { |
||
26 | use ValidatorTrait; |
||
27 | use TranscoderTrait; |
||
28 | |||
29 | /** |
||
30 | * DEPRECATION WARNING! This method will be removed in the next major point release |
||
31 | * |
||
32 | * @deprecated deprecated since version 4.2 |
||
33 | * |
||
34 | * Returns whether two UriPart objects represent the same value |
||
35 | * The comparison is based on the getUriComponent method |
||
36 | * |
||
37 | * @param UriPart $component |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function sameValueAs(UriPart $component) |
||
45 | |||
46 | /** |
||
47 | * Returns the instance string representation |
||
48 | * with its optional URI delimiters |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | abstract public function getUriComponent(); |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function __set($property, $value) |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function __unset($property) |
||
69 | } |
||
70 |