Endpoint.php 330 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace MeiliSearch\Contracts;
  4. abstract class Endpoint
  5. {
  6. /**
  7. * @var Http
  8. */
  9. protected $http;
  10. public function __construct(Http $http)
  11. {
  12. $this->http = $http;
  13. }
  14. public function show(): ?array
  15. {
  16. return $this->http->get(static::PATH);
  17. }
  18. }