| 1 | <?php |
||
| 17 | class Record extends \YF\Modules\Base\Model\Record |
||
| 18 | { |
||
| 19 | /** @var array Sub-comments */ |
||
| 20 | private $children = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get commentator name. |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getCommentatorName(): string |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Gets sub-comments. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getChildren(): array |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Sets sub-comment. |
||
| 48 | * |
||
| 49 | * @param \YF\Modules\Base\Model\Record $recordModel |
||
| 50 | * |
||
| 51 | * @return $this |
||
| 52 | */ |
||
| 53 | public function setChild(\YF\Modules\Base\Model\Record $recordModel) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get URL address. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getChildrenUrl(): string |
||
| 72 | } |
||
| 73 |