mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-12 15:38:41 +00:00
fix phpstan
This commit is contained in:
parent
0ce23630ff
commit
851eab7fa5
|
|
@ -42,7 +42,13 @@ class Comment
|
||||||
*/
|
*/
|
||||||
private \DateTime $createdAt;
|
private \DateTime $createdAt;
|
||||||
|
|
||||||
private $list = null;
|
/**
|
||||||
|
* Comment list this comment belongs to
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private $list = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Title
|
* Title
|
||||||
|
|
@ -123,13 +129,13 @@ class Comment
|
||||||
/**
|
/**
|
||||||
* Set the list this comment belongs to
|
* Set the list this comment belongs to
|
||||||
*
|
*
|
||||||
* @param mixed $list List
|
* @param int $list List
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setList($list) : void
|
public function setList(int $list) : void
|
||||||
{
|
{
|
||||||
$this->list = $list;
|
$this->list = $list;
|
||||||
}
|
}
|
||||||
|
|
@ -137,11 +143,11 @@ class Comment
|
||||||
/**
|
/**
|
||||||
* Get the list this comment belongs to
|
* Get the list this comment belongs to
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getList()
|
public function getList() : int
|
||||||
{
|
{
|
||||||
return $this->list;
|
return $this->list;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user