diff --git a/Models/Comment.php b/Models/Comment.php index a103e4e..11a3df4 100644 --- a/Models/Comment.php +++ b/Models/Comment.php @@ -57,7 +57,7 @@ class Comment * @var int * @since 1.0.0 */ - private $list = 0; + private int $list = 0; /** * Title @@ -67,6 +67,12 @@ class Comment */ private $title = ''; + /** + * Comment status + * + * @var int + * @since 1.0.0 + */ private int $status = 0; /** @@ -85,7 +91,13 @@ class Comment */ private $contentRaw = ''; - private $ref = null; + /** + * Comment this is refering to + * + * @var null|self + * @since 1.0.0 + */ + private ?Comment $ref = null; /** * Constructor. diff --git a/Models/CommentListMapper.php b/Models/CommentListMapper.php index 91d6f8f..26ea0b1 100644 --- a/Models/CommentListMapper.php +++ b/Models/CommentListMapper.php @@ -39,7 +39,7 @@ final class CommentListMapper extends DataMapperAbstract /** * Has many relation. * - * @var array + * @var array * @since 1.0.0 */ protected static array $hasMany = [