| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class PostForm extends FormModel |
||
| 11 | { |
||
| 12 | private ?string $title = null; |
||
| 13 | private ?string $content = null; |
||
| 14 | private ?array $tags = []; |
||
| 15 | |||
| 16 | public function getTitle(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getContent(): ?string |
||
| 22 | { |
||
| 23 | return $this->content; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function formName(): string |
||
| 27 | { |
||
| 28 | return ''; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getTags(): array |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function rules(): array |
||
| 51 |