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