IndexHint.php 511 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Illuminate\Database\Query;
  3. class IndexHint
  4. {
  5. /**
  6. * The type of query hint.
  7. *
  8. * @var string
  9. */
  10. public $type;
  11. /**
  12. * The name of the index.
  13. *
  14. * @var string
  15. */
  16. public $index;
  17. /**
  18. * Create a new index hint instance.
  19. *
  20. * @param string $type
  21. * @param string $index
  22. * @return void
  23. */
  24. public function __construct($type, $index)
  25. {
  26. $this->type = $type;
  27. $this->index = $index;
  28. }
  29. }