Passed
Push — 6.4 ( be76f2...e19c4d )
by Christian
14:08 queued 13s
created

AdminSearchIndexingMessage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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