1 | <?php |
||
13 | trait ContentTrait |
||
14 | { |
||
15 | use TimestampableEntity; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @ORM\Column(name="title", type="string", length=255) |
||
21 | */ |
||
22 | protected $title; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @ORM\Column(name="description", type="text", nullable=true) |
||
28 | */ |
||
29 | protected $description; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(name="content", type="text", nullable=true) |
||
35 | */ |
||
36 | protected $content; |
||
37 | |||
38 | /** |
||
39 | * @var bool |
||
40 | * |
||
41 | * @ORM\Column(name="enabled", type="boolean") |
||
42 | */ |
||
43 | protected $enabled = false; |
||
44 | |||
45 | public function __toString() |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getTitle() |
||
57 | |||
58 | /** |
||
59 | * @param string $title |
||
60 | */ |
||
61 | 1 | public function setTitle($title) |
|
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getDescription() |
||
73 | |||
74 | /** |
||
75 | * @param string $description |
||
76 | */ |
||
77 | 1 | public function setDescription($description) |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getContent() |
||
89 | |||
90 | /** |
||
91 | * @param string $content |
||
92 | * |
||
93 | * @return $this |
||
94 | */ |
||
95 | 1 | public function setContent($content) |
|
101 | |||
102 | /** |
||
103 | * @return boolean |
||
104 | */ |
||
105 | public function isEnabled() |
||
109 | |||
110 | /** |
||
111 | * @param boolean $enabled |
||
112 | * |
||
113 | * @return $this |
||
114 | */ |
||
115 | 1 | public function setEnabled($enabled) |
|
121 | } |
||
122 |