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

AdminSearchIndexingMessage   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 52
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntity() 0 3 1
A getIndexer() 0 3 1
A __construct() 0 6 1
A getIndices() 0 3 1
A getIds() 0 3 1
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