aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Timeline/TimelineItem.php
blob: d6ba563dfefeb63e12d2dc07dfdc639d09727a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace Digitigrade\Timeline;

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;
    }
}