DnsCache.php 677 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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. namespace Symfony\Component\HttpClient\Internal;
  11. /**
  12. * Cache for resolved DNS queries.
  13. *
  14. * @author Alexander M. Turek <me@derrabus.de>
  15. *
  16. * @internal
  17. */
  18. final class DnsCache
  19. {
  20. /**
  21. * Resolved hostnames (hostname => IP address).
  22. *
  23. * @var string[]
  24. */
  25. public $hostnames = [];
  26. /**
  27. * @var string[]
  28. */
  29. public $removals = [];
  30. /**
  31. * @var string[]
  32. */
  33. public $evictions = [];
  34. }