ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LP.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22
23use ilDateTime;
25
26class LP implements LPInterface
27{
28 public function __construct(
29 protected int $user_id,
30 protected int $object_id,
31 protected int $lp_status,
32 protected int $percentage,
33 protected int $lp_mode,
34 protected int $spend_seconds,
35 protected ilDateTime $status_changed,
36 protected int $visits,
37 protected int $read_count,
38 protected bool $has_percentage
39 ) {
40 }
41
42 public function hasPercentage(): bool
43 {
44 return $this->has_percentage;
45 }
46
47 public function getUserId(): int
48 {
49 return $this->user_id;
50 }
51
52 public function getObjectId(): int
53 {
54 return $this->object_id;
55 }
56
57 public function getLPStatus(): int
58 {
59 return $this->lp_status;
60 }
61
62 public function getPercentage(): int
63 {
64 return $this->percentage;
65 }
66
67 public function getLPMode(): int
68 {
69 return $this->lp_mode;
70 }
71
72 public function getStatusChanged(): ilDateTime
73 {
74 return $this->status_changed;
75 }
76
77 public function getReadCount(): int
78 {
79 return $this->read_count;
80 }
81
82 public function getSpentSeconds(): int
83 {
84 return $this->spend_seconds;
85 }
86
87 public function getVisits(): int
88 {
89 return $this->visits;
90 }
91}
__construct(protected int $user_id, protected int $object_id, protected int $lp_status, protected int $percentage, protected int $lp_mode, protected int $spend_seconds, protected ilDateTime $status_changed, protected int $visits, protected int $read_count, protected bool $has_percentage)
Definition: LP.php:28
@classDescription Date and time handling