oms-News/Models/NewsSeen.php
2022-02-19 13:57:39 +01:00

63 lines
911 B
PHP
Executable File

<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package Modules\News\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace Modules\News\Models;
/**
* Null model
*
* @package Modules\News\Models
* @license OMS License 1.0
* @link https://karaka.app
* @since 1.0.0
*/
class NewsSeen
{
/**
* Article ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
public \DateTime $seenAt;
public int $seenBy = 0;
public int $news = 0;
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->seenAt = new \DateTime('now');
}
/**
* Get id
*
* @return int
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
}
}