[DATABASE][AUTOCODE] Update autocode to use \DateTimeInterface instead of DateTime

This commit is contained in:
Hugo Sales
2020-03-30 17:17:54 +00:00
committed by Hugo Sales
parent c583c0f266
commit 1f35af7169
56 changed files with 285 additions and 285 deletions

View File

@@ -40,7 +40,7 @@ class ForeignSubscription
private int $service;
private int $subscriber;
private int $subscribed;
private DateTime $created;
private \DateTimeInterface $created;
public function setService(int $service): self
{
@@ -72,12 +72,12 @@ class ForeignSubscription
return $this->subscribed;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}