Passed
Push — trunk ( f797a9...e92141 )
by Christian
22:24 queued 10:00
created

DeleteThemeFilesMessage   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 22
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getThemePath() 0 3 1
A __construct() 0 5 1
A getThemeId() 0 3 1
A getSalesChannelId() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Storefront\Theme\Message;
4
5
use Shopware\Core\Framework\MessageQueue\AsyncMessageInterface;
6
7
/**
8
 * @package storefront
9
 *
10
 * used to delay the deletion of theme files
11
 */
12
class DeleteThemeFilesMessage implements AsyncMessageInterface
13
{
14
    public function __construct(
15
        private readonly string $themePath,
16
        private readonly string $salesChannelId,
17
        private readonly string $themeId
18
    ) {
19
    }
20
21
    public function getThemePath(): string
22
    {
23
        return $this->themePath;
24
    }
25
26
    public function getSalesChannelId(): string
27
    {
28
        return $this->salesChannelId;
29
    }
30
31
    public function getThemeId(): string
32
    {
33
        return $this->themeId;
34
    }
35
}
36