1818
1919/**
2020 * @method static when(callable|bool $condition, callable $onSuccess, ?callable $onFail = null) conditionally return a new instance
21+ * @method bool equals(mixed $value) tells whether the submitted value is equal to the current instance value
2122 */
2223interface UriComponentInterface extends JsonSerializable, Stringable
2324{
@@ -39,7 +40,7 @@ public function value(): ?string;
3940 * but MUST NOT double-encode any characters. To determine what characters
4041 * to encode, please refer to RFC 3986, Sections 2 and 3.
4142 *
42- * If the instance is not defined an empty string is returned
43+ * If the instance is not defined, an empty string is returned
4344 */
4445 public function toString (): string ;
4546
@@ -50,7 +51,7 @@ public function toString(): string;
5051 * but MUST NOT double-encode any characters. To determine what characters
5152 * to encode, please refer to RFC 3986, Sections 2 and 3.
5253 *
53- * If the instance is not defined an empty string is returned
54+ * If the instance is not defined, an empty string is returned
5455 */
5556 public function __toString (): string ;
5657
@@ -61,7 +62,7 @@ public function __toString(): string;
6162 * but MUST NOT double-encode any characters. To determine what characters
6263 * to encode, please refer to RFC 3986 or RFC 1738.
6364 *
64- * If the instance is not defined null is returned
65+ * If the instance is not defined, null is returned
6566 */
6667 public function jsonSerialize (): ?string ;
6768
@@ -72,7 +73,7 @@ public function jsonSerialize(): ?string;
7273 * characters. To determine what characters to encode, please refer to RFC 3986,
7374 * Sections 2 and 3.
7475 *
75- * If the instance is not defined an empty string is returned
76+ * If the instance is not defined, an empty string is returned
7677 */
7778 public function getUriComponent (): string ;
7879}
0 commit comments