AuthorityInterface.php
3 years ago
DataPathInterface.php
3 years ago
DomainHostInterface.php
3 years ago
FragmentInterface.php
3 years ago
HostInterface.php
3 years ago
IpHostInterface.php
3 years ago
PathInterface.php
3 years ago
PortInterface.php
3 years ago
QueryInterface.php
3 years ago
SegmentedPathInterface.php
3 years ago
UriComponentInterface.php
3 years ago
UriException.php
3 years ago
UriInterface.php
3 years ago
UserInfoInterface.php
3 years ago
UserInfoInterface.php
37 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 IAWP\League\Uri\Contracts; |
| 13 | |
| 14 | interface UserInfoInterface extends UriComponentInterface |
| 15 | { |
| 16 | /** |
| 17 | * Returns the user component part. |
| 18 | */ |
| 19 | public function getUser() : ?string; |
| 20 | /** |
| 21 | * Returns the pass component part. |
| 22 | */ |
| 23 | public function getPass() : ?string; |
| 24 | /** |
| 25 | * Returns an instance with the specified user and/or pass. |
| 26 | * |
| 27 | * This method MUST retain the state of the current instance, and return |
| 28 | * an instance that contains the specified user. |
| 29 | * |
| 30 | * An empty user is equivalent to removing the user information. |
| 31 | * |
| 32 | * @param ?string $user |
| 33 | * @param ?string $pass |
| 34 | */ |
| 35 | public function withUserInfo(?string $user, ?string $pass = null) : self; |
| 36 | } |
| 37 |