Passed
Push — trunk ( 544851...4bb49d )
by Christian
10:04 queued 12s
created

AdminSearchIndexingMessage::getIds()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Elasticsearch\Admin;
4
5
/**
6
 * @package system-settings
7
 *
8
 * @internal
9
 */
10
final class AdminSearchIndexingMessage
11
{
12
    private string $entity;
13
14
    private string $indexer;
15
16
    /**
17
     * @var array<string, string>
18
     */
19
    private array $indices;
20
21
    /**
22
     * @var array<string>
23
     */
24
    private array $ids;
25
26
    /**
27
     * @param array<string, string> $indices
28
     * @param array<string> $ids
29
     */
30
    public function __construct(string $entity, string $indexer, array $indices, array $ids)
31
    {
32
        $this->entity = $entity;
33
        $this->indexer = $indexer;
34
        $this->indices = $indices;
35
        $this->ids = $ids;
36
    }
37
38
    public function getEntity(): string
39
    {
40
        return $this->entity;
41
    }
42
43
    public function getIndexer(): string
44
    {
45
        return $this->indexer;
46
    }
47
48
    /**
49
     * @return array<string, string>
50
     */
51
    public function getIndices(): array
52
    {
53
        return $this->indices;
54
    }
55
56
    /**
57
     * @return array<string>
58
     */
59
    public function getIds(): array
60
    {
61
        return $this->ids;
62
    }
63
}
64