aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/TimelineItem.php
diff options
context:
space:
mode:
authorwinter2024-12-31 16:25:22 +0000
committerwinter2024-12-31 16:25:22 +0000
commit982e6213622bcb78a40d17f54cda27225a1d84b3 (patch)
tree0a81d8fc183238dca959a4ab848c9cd1d241ef27 /Digitigrade/TimelineItem.php
parentad554b48e7dc355d9b33eede98f4e3e829fd867e (diff)
rework timelines. inclusion reasons supported now
Diffstat (limited to 'Digitigrade/TimelineItem.php')
-rw-r--r--Digitigrade/TimelineItem.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/Digitigrade/TimelineItem.php b/Digitigrade/TimelineItem.php
new file mode 100644
index 0000000..e59fbec
--- /dev/null
+++ b/Digitigrade/TimelineItem.php
@@ -0,0 +1,20 @@
+<?php
+namespace Digitigrade;
+
+class TimelineItem {
+ private ?TimelineInclusionReason $reason;
+ private TimelineIncludeable $object;
+
+ public function __construct(TimelineIncludeable $object, ?TimelineInclusionReason $reason = null) {
+ $this->reason = $reason;
+ $this->object = $object;
+ }
+
+ public function getReason(): ?TimelineInclusionReason {
+ return $this->reason;
+ }
+
+ public function getObject(): TimelineIncludeable {
+ return $this->object;
+ }
+} \ No newline at end of file