Passed
Push — master ( 527243...f676e6 )
by Christian
13:39 queued 11s
created

ManufacturerLogoStruct   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiAlias() 0 3 1
A getManufacturer() 0 3 1
A setManufacturer() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
4
5
use Shopware\Core\Content\Product\Aggregate\ProductManufacturer\ProductManufacturerEntity;
6
7
class ManufacturerLogoStruct extends ImageStruct
8
{
9
    /**
10
     * @var ProductManufacturerEntity|null
11
     */
12
    protected $manufacturer;
13
14
    public function getManufacturer(): ?ProductManufacturerEntity
15
    {
16
        return $this->manufacturer;
17
    }
18
19
    public function setManufacturer(?ProductManufacturerEntity $manufacturer): void
20
    {
21
        $this->manufacturer = $manufacturer;
22
    }
23
24
    public function getApiAlias(): string
25
    {
26
        return 'cms_manufacturer_logo';
27
    }
28
}
29