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

ManufacturerLogoStruct::setManufacturer()   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\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