Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
theUniC committed Apr 3, 2021
1 parent 5670007 commit afb8a85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getId(): int
return $this->id;
}

public function getThread(): ThreadInterface
public function getThread(): ?ThreadInterface
{
return $this->thread;
}
Expand All @@ -43,12 +43,12 @@ public function setThread(ThreadInterface $thread): void
$this->thread = $thread;
}

public function getCreatedAt(): DateTimeInterface
public function getCreatedAt(): ?DateTimeInterface
{
return $this->createdAt;
}

public function getBody(): string
public function getBody(): ?string
{
return $this->body;
}
Expand All @@ -58,7 +58,7 @@ public function setBody(string $body): void
$this->body = $body;
}

public function getSender(): ParticipantInterface
public function getSender(): ?ParticipantInterface
{
return $this->sender;
}
Expand All @@ -68,7 +68,7 @@ public function setSender(ParticipantInterface $sender): void
$this->sender = $sender;
}

public function getTimestamp(): int
public function getTimestamp(): ?int
{
return $this->getCreatedAt()->getTimestamp();
}
Expand Down

0 comments on commit afb8a85

Please sign in to comment.