Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait SeoTrait |
||
11 | { |
||
12 | /** |
||
13 | * @var SeoInterface|null |
||
14 | * |
||
15 | * @ORM\OneToOne(targetEntity="\JoppeDc\SyliusBetterSeoPlugin\Entity\Seo", cascade={"all"}) |
||
16 | * @ORM\JoinColumn(name="seo_id", referencedColumnName="id") |
||
17 | */ |
||
18 | protected $seo; |
||
19 | |||
20 | public function getSeo(): ?SeoInterface |
||
21 | { |
||
22 | return $this->seo; |
||
23 | } |
||
24 | |||
25 | public function setSeo(?SeoInterface $seo): void |
||
28 | } |
||
29 | } |
||
30 |