Completed
Push — master ( 016326...2f159d )
by Joachim
04:38
created

ProductTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBrand() 0 3 1
A setBrand() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Loevgaard\SyliusBrandPlugin\Entity;
6
7
trait ProductTrait
8
{
9
    /**
10
     * @var BrandInterface
11
     */
12
    protected $brand;
13
14
    /**
15
     * @return BrandInterface
16
     */
17
    public function getBrand(): ?BrandInterface
18
    {
19
        return $this->brand;
20
    }
21
22
    /**
23
     * @param BrandInterface $brand
24
     * @return ProductTrait
25
     */
26
    public function setBrand(BrandInterface $brand)
27
    {
28
        $this->brand = $brand;
29
        return $this;
30
    }
31
}