Release 2.0.35 (#4302)

This commit is contained in:
Kevin Papst
2023-09-23 18:15:22 +02:00
committed by GitHub
parent de419350b2
commit 7a5b12762a
122 changed files with 1555 additions and 2054 deletions

View File

@@ -21,16 +21,16 @@ final class RevenueStatisticEvent extends Event
*/
private array $revenue = [];
public function __construct(private ?\DateTime $begin, private ?\DateTime $end)
public function __construct(private ?\DateTimeInterface $begin, private ?\DateTimeInterface $end)
{
}
public function getBegin(): ?\DateTime
public function getBegin(): ?\DateTimeInterface
{
return $this->begin;
}
public function getEnd(): ?\DateTime
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}

View File

@@ -37,7 +37,7 @@ final class UserPreferenceDisplayEvent extends Event
return $this->preferences;
}
public function addPreference(UserPreference $preference)
public function addPreference(UserPreference $preference): void
{
$this->preferences[] = $preference;
}

View File

@@ -19,17 +19,17 @@ final class UserRevenueStatisticEvent extends Event
{
private RevenueStatisticEvent $event;
public function __construct(private User $user, ?\DateTime $begin, ?\DateTime $end)
public function __construct(private User $user, ?\DateTimeInterface $begin, ?\DateTimeInterface $end)
{
$this->event = new RevenueStatisticEvent($begin, $end);
}
public function getBegin(): ?\DateTime
public function getBegin(): ?\DateTimeInterface
{
return $this->event->getBegin();
}
public function getEnd(): ?\DateTime
public function getEnd(): ?\DateTimeInterface
{
return $this->event->getEnd();
}