| 1 | <?php |
||
| 23 | trait ImmutableComponentTrait |
||
| 24 | { |
||
| 25 | use ValidatorTrait; |
||
| 26 | use TranscoderTrait; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns whether two UriPart objects represent the same value |
||
| 30 | * The comparison is based on the getUriComponent method |
||
| 31 | * |
||
| 32 | * @param UriPart $component |
||
| 33 | * |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | 36 | public function sameValueAs(UriPart $component) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Returns the instance string representation |
||
| 43 | * with its optional URI delimiters |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | abstract public function getUriComponent(); |
||
| 48 | } |
||
| 49 |