NodePoolInterface.php 667 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Elastic Transport
  4. *
  5. * @link https://github.com/elastic/elastic-transport-php
  6. * @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
  7. * @license https://opensource.org/licenses/MIT MIT License
  8. *
  9. * Licensed to Elasticsearch B.V under one or more agreements.
  10. * Elasticsearch B.V licenses this file to you under the MIT License.
  11. * See the LICENSE file in the project root for more information.
  12. */
  13. declare(strict_types=1);
  14. namespace Elastic\Transport\NodePool;
  15. interface NodePoolInterface
  16. {
  17. public function nextNode(): Node;
  18. /**
  19. * @param string[] $hosts
  20. */
  21. public function setHosts(array $hosts): self;
  22. }