Passed
Push — trunk ( 9f8579...29fffa )
by Christian
13:21 queued 11s
created

MailAttachmentsConfig::getMailTemplate()   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 0
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;
0 ignored issues
show
Bug introduced by
The type Shopware\Core\Content\Ma...late\MailTemplateEntity was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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