PortInterface.php 470 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * League.Uri (https://uri.thephpleague.com)
  4. *
  5. * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace League\Uri\Contracts;
  12. interface PortInterface extends UriComponentInterface
  13. {
  14. /**
  15. * Returns the integer representation of the Port.
  16. */
  17. public function toInt(): ?int;
  18. }