Total Complexity | 6 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class PropertyDescription |
||
16 | { |
||
17 | use EntityIdTrait; |
||
18 | use EntityMetaTrait; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string", length=255, nullable=true) |
||
22 | */ |
||
23 | private $title; |
||
24 | |||
25 | /** |
||
26 | * @ORM\Column(type="text", nullable=true) |
||
27 | */ |
||
28 | private $content; |
||
29 | |||
30 | /** |
||
31 | * @ORM\OneToOne(targetEntity=Property::class, inversedBy="propertyDescription", cascade={"persist", "remove"}) |
||
32 | * @ORM\JoinColumn(nullable=false) |
||
33 | */ |
||
34 | private $property; |
||
35 | |||
36 | public function getTitle(): ?string |
||
37 | { |
||
38 | return $this->title; |
||
39 | } |
||
40 | |||
41 | public function setTitle(?string $title): self |
||
42 | { |
||
43 | $this->title = $title; |
||
44 | |||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | public function getContent(): ?string |
||
49 | { |
||
50 | return $this->content; |
||
51 | } |
||
52 | |||
53 | public function setContent(?string $content): self |
||
54 | { |
||
55 | $this->content = $content; |
||
56 | |||
57 | return $this; |
||
58 | } |
||
59 | |||
60 | public function getProperty(): ?Property |
||
63 | } |
||
64 | |||
65 | public function setProperty(Property $property): self |
||
70 | } |
||
71 | } |
||
72 |