src/Services/Elastic/AbstractElasticService.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Services\Elastic;
  3. use App\Extern\ExternElasticService;
  4. use Psr\Log\LoggerInterface;
  5. abstract class AbstractElasticService
  6. {
  7.     /** @var ExternElasticService $elasticService */
  8.     protected $elasticService;
  9.     /** @var string $index */
  10.     protected $index;
  11.     /** @var LoggerInterface $logger */
  12.     protected $logger;
  13.     public function __construct(string $hoststring $portstring $transportLoggerInterface $loggerstring $index)
  14.     {
  15.         $this->elasticService = new ExternElasticService($host$port$transport$logger);
  16.         $this->elasticService->addAndSetIndex($index);
  17.         $this->logger $logger;
  18.         $this->index $index;
  19.     }
  20. }