mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 16:38:41 +00:00
fix minor construct bugs
This commit is contained in:
parent
4d0ddae9e6
commit
3190c973fa
|
|
@ -37,7 +37,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Title.
|
* Title.
|
||||||
|
|
@ -137,7 +137,6 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
$this->createdBy = new NullAccount();
|
$this->createdBy = new NullAccount();
|
||||||
$this->createdAt = new \DateTime('now');
|
$this->createdAt = new \DateTime('now');
|
||||||
$this->publish = new \DateTime('now');
|
$this->publish = new \DateTime('now');
|
||||||
$this->account = new NullAccount();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -34,5 +34,6 @@ final class NullNewsArticle extends NewsArticle
|
||||||
public function __construct(int $id = 0)
|
public function __construct(int $id = 0)
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
|
parent::__construct();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user