Total Complexity | 1 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class CommentForm extends Form |
||
14 | { |
||
15 | /** |
||
16 | * The article id where the comment belong to. |
||
17 | * |
||
18 | * @var int|null |
||
19 | */ |
||
20 | #[Locked] |
||
21 | public ?int $blog_article_id = null; |
||
22 | |||
23 | /** |
||
24 | * The content of the comment. |
||
25 | * |
||
26 | * @var string|null |
||
27 | */ |
||
28 | #[Validate('required|min:10')] |
||
29 | public ?string $content = null; |
||
30 | |||
31 | /** |
||
32 | * Function to store the model. |
||
33 | * |
||
34 | * @return BlogComment |
||
35 | */ |
||
36 | public function store(): BlogComment |
||
51 |