Skip to content

Commit c388182

Browse files
committed
Adding UriComponentInterface::equals method
1 parent 7d68739 commit c388182

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ All Notable changes to `League\Uri\Interfaces` will be documented in this file
66

77
### Added
88

9+
- `UriComponentInterface::equals`
910
- `Contidionable` interface
10-
- `UriInspector` interface
11-
- `UriRenderer` interface
1211
- `UriInterface::resolve`
1312
- `UriInterface::relativize`
1413
- `UriInterface::equals`

Contracts/UriComponentInterface.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
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
*/
2223
interface 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

Comments
 (0)