AuthorityInterface.php
2 years ago
DataPathInterface.php
2 years ago
DomainHostInterface.php
2 years ago
FragmentInterface.php
2 years ago
HostInterface.php
2 years ago
IpHostInterface.php
2 years ago
PathInterface.php
2 years ago
PortInterface.php
2 years ago
QueryInterface.php
2 years ago
SegmentedPathInterface.php
2 years ago
UriComponentInterface.php
2 years ago
UriException.php
2 years ago
UriInterface.php
2 years ago
UserInfoInterface.php
2 years ago
UserInfoInterface.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * League.Uri (https://uri.thephpleague.com) |
| 5 | * |
| 6 | * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | declare (strict_types=1); |
| 12 | namespace IAWPSCOPED\League\Uri\Contracts; |
| 13 | |
| 14 | /** @internal */ |
| 15 | interface UserInfoInterface extends UriComponentInterface |
| 16 | { |
| 17 | /** |
| 18 | * Returns the user component part. |
| 19 | */ |
| 20 | public function getUser() : ?string; |
| 21 | /** |
| 22 | * Returns the pass component part. |
| 23 | */ |
| 24 | public function getPass() : ?string; |
| 25 | /** |
| 26 | * Returns an instance with the specified user and/or pass. |
| 27 | * |
| 28 | * This method MUST retain the state of the current instance, and return |
| 29 | * an instance that contains the specified user. |
| 30 | * |
| 31 | * An empty user is equivalent to removing the user information. |
| 32 | * |
| 33 | * @param ?string $user |
| 34 | * @param ?string $pass |
| 35 | */ |
| 36 | public function withUserInfo(?string $user, ?string $pass = null) : self; |
| 37 | } |
| 38 |