Passed
Push — trunk ( 0c8c44...d7223d )
by Christian
18:03 queued 05:32
created

CustomerIndexingMessage::getIds()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Customer\DataAbstractionLayer;
4
5
use Shopware\Core\Framework\DataAbstractionLayer\Indexing\EntityIndexingMessage;
6
use Shopware\Core\Framework\Feature;
7
8
class CustomerIndexingMessage extends EntityIndexingMessage
9
{
10
    /**
11
     * @var string[]
12
     */
13
    private array $ids = [];
14
15
    /**
16
     * @param string[] $ids
17
     *
18
     * @deprecated tag:v6.5.0 - will be removed use setIds instead
19
     */
20
    public function setIdsWithEmailChange(array $ids): void
21
    {
22
        Feature::triggerDeprecationOrThrow(
23
            'v6.5.0.0',
24
            Feature::deprecatedMethodMessage(__CLASS__, __METHOD__, 'v6.5.0.0')
25
        );
26
27
        $this->ids = $ids;
28
    }
29
30
    /**
31
     * @deprecated tag:v6.5.0 - will be removed use getIds instead
32
     *
33
     * @return string[]
34
     */
35
    public function getIdsWithEmailChange(): array
36
    {
37
        Feature::triggerDeprecationOrThrow(
38
            'v6.5.0.0',
39
            Feature::deprecatedMethodMessage(__CLASS__, __METHOD__, 'v6.5.0.0')
40
        );
41
42
        return $this->ids;
43
    }
44
45
    /**
46
     * @return string[]
47
     */
48
    public function getIds(): array
49
    {
50
        return $this->ids;
51
    }
52
53
    /**
54
     * @param array<string> $ids
55
     */
56
    public function setIds(array $ids): void
57
    {
58
        $this->ids = $ids;
59
    }
60
}
61