<?php

namespace Signteer\Core\Event;

class EventEnvelope
{
    private int $id;
    private int $user;
    private $event;
    private \DateTimeInterface $when;

    public function __construct(int $id, $event, int $user, \DateTimeInterface $when)
    {
        $this->id = $id;
        $this->event = $event;
        $this->user = $user;
        $this->when = $when;
    }

    public function getId(): int
    {
        return $this->id;
    }

    public function getEvent()
    {
        return $this->event;
    }

    public function getWhen(): \DateTimeInterface
    {
        return $this->when;
    }

    public function getUser(): int
    {
        return $this->user;
    }
}
