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

CrossSellingStruct   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiAlias() 0 3 1
A getCrossSellings() 0 3 1
A setCrossSellings() 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\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