| 1 | <?php |
||
| 5 | class MetaPost implements ValidableInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Post|null |
||
| 9 | */ |
||
| 10 | private $post; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Comment[]|null |
||
| 14 | */ |
||
| 15 | private $comments; |
||
| 16 | |||
| 17 | |||
| 18 | public function getPost(): ?Post |
||
| 22 | |||
| 23 | public function setPost(?Post $post): void |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return Comment[]|null |
||
| 30 | */ |
||
| 31 | public function getComments(): ?array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param Comment[]|null $comments |
||
| 38 | */ |
||
| 39 | public function setComments(?array $comments): void |
||
| 43 | |||
| 44 | public function isValid(): bool |
||
| 52 | } |