fix phpstan

This commit is contained in:
Dennis Eichhorn 2020-03-03 16:26:48 +01:00
parent 40f83519de
commit 52e9db17cf
2 changed files with 28 additions and 2 deletions

View File

@ -34,15 +34,35 @@ class QAAnswer implements \JsonSerializable
private int $status = QAAnswerStatus::ACTIVE;
/**
* Answer.
*
* @var string
* @var 1.0.0
*/
private $answer = '';
/**
* Answer raw.
*
* @var string
* @var 1.0.0
*/
private $answerRaw = '';
private $question = 0;
private $isAccepted = false;
/**
* Is accepted answer.
*
* @var bool
* @var 1.0.0
*/
private bool $isAccepted = false;
private $createdBy = 0;
private $createdAt = null;
private \DateTime $createdAt;
/**
* Constructor.

View File

@ -40,6 +40,12 @@ class QACategory implements \JsonSerializable
*/
private string $name = '';
/**
* Parent category.
*
* @var null|int|QACategory
* @since 1.0.0
*/
private $parent = null;
/**