| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait ProductTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var BrandInterface |
||
| 13 | * |
||
| 14 | * @ORM\ManyToOne(targetEntity="\Loevgaard\SyliusBrandPlugin\Model\BrandInterface", cascade={"persist"}, fetch="EAGER", inversedBy="products") |
||
| 15 | * @ORM\JoinColumn(name="brand_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 16 | */ |
||
| 17 | protected $brand; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return BrandInterface|null |
||
| 21 | */ |
||
| 22 | public function getBrand(): ?BrandInterface |
||
| 23 | { |
||
| 24 | return $this->brand; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param BrandInterface|null $brand |
||
| 29 | */ |
||
| 30 | public function setBrand(?BrandInterface $brand): void |
||
| 33 | } |
||
| 34 | } |
||
| 35 |