diff options
Diffstat (limited to 'Digitigrade/TimelineItem.php')
| -rw-r--r-- | Digitigrade/TimelineItem.php | 20 |
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 |
