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

ProductTrait::setBrand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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