1<?php
2
3namespace Elastica;
4
5/**
6 * Implementation of Point-In-Time for the Search request.
7 */
8class PointInTime extends Param
9{
10    public function __construct(string $id, string $keepAlive)
11    {
12        $this->setParams(['id' => $id, 'keep_alive' => $keepAlive]);
13    }
14
15    public function toArray(): array
16    {
17        $data = $this->getParams();
18
19        if ($this->_rawParams) {
20            $data = \array_merge($data, $this->_rawParams);
21        }
22
23        return $this->_convertArrayable($data);
24    }
25}
26