Type and cs fixes

This commit is contained in:
Dennis Eichhorn 2020-03-07 00:23:17 +01:00
parent 17beb7bb3b
commit c2d546b27b
2 changed files with 15 additions and 3 deletions

View File

@ -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.

View File

@ -39,7 +39,7 @@ final class CommentListMapper extends DataMapperAbstract
/**
* Has many relation.
*
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string}>
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string, column?:string}>
* @since 1.0.0
*/
protected static array $hasMany = [