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            '_type',
22            '_id',
23            'version',
24            'version_type',
25            'routing',
26            'parent',
27        ]);
28    }
29}
30