Completed
Push — master ( ea0a23...156714 )
by Joachim
12s queued 11s
created

ProductTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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