designtopack/public/site/plugins/comments/src/Reply.php

19 lines
321 B
PHP
Raw Normal View History

2024-10-30 09:49:16 +01:00
<?php
namespace adrienpayet\comments;
class Reply extends BaseComment {
protected string $type = "comment-reply";
2024-10-30 09:49:16 +01:00
public function __construct($data) {
parent::__construct($data);
}
public function toArray() {
$array = parent::toArray();
$array['type'] = $this->type;
2024-10-30 09:49:16 +01:00
return $array;
}
}