Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| TaskSeen | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package Modules\Tasks\Models |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace Modules\Tasks\Models; |
| 16 | |
| 17 | use Modules\Admin\Models\Account; |
| 18 | |
| 19 | /** |
| 20 | * Null model |
| 21 | * |
| 22 | * @package Modules\Tasks\Models |
| 23 | * @license OMS License 2.0 |
| 24 | * @link https://jingga.app |
| 25 | * @since 1.0.0 |
| 26 | */ |
| 27 | class TaskSeen |
| 28 | { |
| 29 | /** |
| 30 | * Seen ID. |
| 31 | * |
| 32 | * @var int |
| 33 | * @since 1.0.0 |
| 34 | */ |
| 35 | public int $id = 0; |
| 36 | |
| 37 | public \DateTime $seenAt; |
| 38 | |
| 39 | public int $seenBy = 0; |
| 40 | |
| 41 | public int $task = 0; |
| 42 | |
| 43 | public ?\DateTime $reminderAt = null; |
| 44 | |
| 45 | public bool $isRemindered = false; |
| 46 | |
| 47 | public ?Account $reminderBy = null; |
| 48 | |
| 49 | /** |
| 50 | * Constructor. |
| 51 | * |
| 52 | * @since 1.0.0 |
| 53 | */ |
| 54 | public function __construct() |
| 55 | { |
| 56 | $this->seenAt = new \DateTime('now'); |
| 57 | } |
| 58 | } |