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

ProductTrait::setBrand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}