*/ class LogEntity { /** @var Event */ protected $event; /** @var string */ protected $action; /** @var User */ protected $user; /** @var DateTime */ protected $time; /** @var array */ protected $data; /** * @param Event $event * @param string $action * @param User $user * @param DateTime $time * @param array $data */ public function __construct(Event $event, $action, User $user, DateTime $time, $data = []) { $this->event = $event; $this->action = $action; $this->user = $user; $this->time = $time; $this->data = $data; } /** * @return Event */ public function getEvent() { return $this->event; } /** * @return string */ public function getAction() { return $this->action; } /** * @return User */ public function getUser() { return $this->user; } /** * @return DateTime */ public function getTime() { return $this->time; } /** * @return array */ public function getData() { return $this->data; } }