Passed
Push — master ( 28073e...99ed61 )
by Christian
11:34 queued 10s
created

MailSendSubscriberConfig::setDocumentIds()   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 1
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\MailTemplate\Subscriber;
4
5
use Shopware\Core\Framework\Struct\Struct;
6
7
class MailSendSubscriberConfig extends Struct
8
{
9
    /**
10
     * @var bool
11
     */
12
    protected $skip;
13
14
    /**
15
     * @var string[]
16
     */
17
    protected $documentIds = [];
18
19
    /**
20
     * @var string[]
21
     */
22
    protected $mediaIds = [];
23
24
    public function __construct(bool $skip, array $documentIds = [], array $mediaIds = [])
25
    {
26
        $this->skip = $skip;
27
        $this->documentIds = $documentIds;
28
        $this->mediaIds = $mediaIds;
29
    }
30
31
    public function skip(): bool
32
    {
33
        return $this->skip;
34
    }
35
36
    public function setSkip(bool $skip): void
37
    {
38
        $this->skip = $skip;
39
    }
40
41
    public function getDocumentIds(): array
42
    {
43
        return $this->documentIds;
44
    }
45
46
    public function getMediaIds(): array
47
    {
48
        return $this->mediaIds;
49
    }
50
51
    public function setDocumentIds(array $documentIds): void
52
    {
53
        $this->documentIds = $documentIds;
54
    }
55
56
    public function setMediaIds(array $mediaIds): void
57
    {
58
        $this->mediaIds = $mediaIds;
59
    }
60
}
61