Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Content extends AbstractComponent |
||
17 | { |
||
18 | /** |
||
19 | * @ORM\Column(type="text") |
||
20 | * @Groups({"content", "component"}) |
||
21 | * @var string |
||
22 | */ |
||
23 | private $content; |
||
24 | |||
25 | public static function loadValidatorMetadata(ClassMetadata $metadata): void |
||
26 | { |
||
27 | $metadata->addPropertyConstraint( |
||
28 | 'content', |
||
29 | new Assert\NotNull() |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getContent(): string |
||
37 | { |
||
38 | return $this->content; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $content |
||
43 | */ |
||
44 | public function setContent(string $content): void |
||
47 | } |
||
48 | } |
||
49 |