1<?php
2
3namespace Elastica\Bulk\Action;
4
5use Elastica\AbstractUpdateAction;
6
7class DeleteDocument extends AbstractDocument
8{
9    /**
10     * @var string
11     */
12    protected $_opType = self::OP_TYPE_DELETE;
13
14    /**
15     * {@inheritdoc}
16     */
17    protected function _getMetadata(AbstractUpdateAction $action): array
18    {
19        return $action->getOptions([
20            '_index',
21            '_id',
22            'if_seq_no',
23            'if_primary_term',
24            'version_type',
25            'routing',
26            'parent',
27        ]);
28    }
29}
30