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

MailSendSubscriberConfig   A

Complexity

Total Complexity 7

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 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocumentIds() 0 3 1
A setDocumentIds() 0 3 1
A setSkip() 0 3 1
A __construct() 0 5 1
A setMediaIds() 0 3 1
A getMediaIds() 0 3 1
A skip() 0 3 1
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