Passed
Push — 6.4 ( b2f05b...7c0c3d )
by Christian
12:48 queued 13s
created

MailAttachmentsConfig::setOrderId()   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
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\Mail\Service;
4
5
use Shopware\Core\Content\MailTemplate\MailTemplateEntity;
6
use Shopware\Core\Content\MailTemplate\Subscriber\MailSendSubscriberConfig;
7
use Shopware\Core\Framework\Context;
8
9
/**
10
 * @internal
11
 */
12
class MailAttachmentsConfig
13
{
14
    private Context $context;
15
16
    private MailTemplateEntity $mailTemplate;
17
18
    private MailSendSubscriberConfig $extension;
19
20
    /**
21
     * @var mixed[]
22
     */
23
    private array $eventConfig;
24
25
    private ?string $orderId;
26
27
    /**
28
     * @param mixed[] $eventConfig
29
     */
30
    public function __construct(
31
        Context $context,
32
        MailTemplateEntity $mailTemplate,
33
        MailSendSubscriberConfig $extension,
34
        array $eventConfig,
35
        ?string $orderId
36
    ) {
37
        $this->context = $context;
38
        $this->mailTemplate = $mailTemplate;
39
        $this->extension = $extension;
40
        $this->eventConfig = $eventConfig;
41
        $this->orderId = $orderId;
42
    }
43
44
    public function getContext(): Context
45
    {
46
        return $this->context;
47
    }
48
49
    public function setContext(Context $context): void
50
    {
51
        $this->context = $context;
52
    }
53
54
    public function getMailTemplate(): MailTemplateEntity
55
    {
56
        return $this->mailTemplate;
57
    }
58
59
    public function setMailTemplate(MailTemplateEntity $mailTemplate): void
60
    {
61
        $this->mailTemplate = $mailTemplate;
62
    }
63
64
    public function getExtension(): MailSendSubscriberConfig
65
    {
66
        return $this->extension;
67
    }
68
69
    public function setExtension(MailSendSubscriberConfig $extension): void
70
    {
71
        $this->extension = $extension;
72
    }
73
74
    /**
75
     * @return mixed[]
76
     */
77
    public function getEventConfig(): array
78
    {
79
        return $this->eventConfig;
80
    }
81
82
    /**
83
     * @param mixed[] $eventConfig
84
     */
85
    public function setEventConfig(array $eventConfig): void
86
    {
87
        $this->eventConfig = $eventConfig;
88
    }
89
90
    public function getOrderId(): ?string
91
    {
92
        return $this->orderId;
93
    }
94
95
    public function setOrderId(?string $orderId): void
96
    {
97
        $this->orderId = $orderId;
98
    }
99
}
100