Wallmander\ElasticsearchIndexer\Model\Client::__construct PHP Method

__construct() public method

public __construct ( integer | null $blogId = null )
$blogId integer | null
    public function __construct($blogId = null)
    {
        $this->setBlog($blogId);
        return parent::__construct(['hosts' => Config::getHosts(), 'logging' => true, 'logPath' => Log::getFilePath('elasticsearch')]);
    }

Usage Example

 public function __construct()
 {
     parent::__construct();
     $this->builderConstruct();
 }