Test Setup Failed
Branch master (cd85d0)
by Valery
09:54
created

PropertyDescription::getContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Entity;
6
7
use App\Entity\Traits\EntityIdTrait;
8
use App\Entity\Traits\EntityMetaTrait;
9
use App\Repository\PropertyDescriptionRepository;
10
use Doctrine\ORM\Mapping as ORM;
11
12
/**
13
 * @ORM\Entity(repositoryClass=PropertyDescriptionRepository::class)
14
 */
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
61
    {
62
        return $this->property;
63
    }
64
65
    public function setProperty(Property $property): self
66
    {
67
        $this->property = $property;
68
69
        return $this;
70
    }
71
}
72