Passed
Push — master ( 5f06d6...f67123 )
by Christian
18:02 queued 06:00
created

CrossSellingStruct::getApiAlias()   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
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
4
5
use Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElementCollection;
6
use Shopware\Core\Framework\Struct\Struct;
7
8
/**
9
 * @internal (flag:FEATURE_NEXT_10078)
10
 */
11
class CrossSellingStruct extends Struct
12
{
13
    /**
14
     * @var CrossSellingElementCollection|null
15
     */
16
    protected $crossSellings;
17
18
    public function getCrossSellings(): ?CrossSellingElementCollection
19
    {
20
        return $this->crossSellings;
21
    }
22
23
    public function setCrossSellings(CrossSellingElementCollection $crossSellings): void
24
    {
25
        $this->crossSellings = $crossSellings;
26
    }
27
28
    public function getApiAlias(): string
29
    {
30
        return 'cms_cross_selling';
31
    }
32
}
33