Skip to content

Commit

Permalink
startDate -> meetingTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kurowski committed Jan 11, 2022
1 parent 29df959 commit 3d99067
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Response/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private function __construct(
private Organizer $organizer,
private TargetGroup $targetGroup,
private Invitation $invitation,
private ?\DateTimeImmutable $startDate,
private ?string $meetingTime,
private ?string $relatedWebsite,
) {}

Expand Down Expand Up @@ -139,9 +139,7 @@ public static function fromResponseData(\stdClass $data): self
$organizer,
TargetGroup::fromScalar($data->indended_for),
$invitation,
$data->start_date !== null
? new \DateTimeImmutable($data->start_date)
: null,
$data->start_date,
$_relatedWebsite,
);
}
Expand Down Expand Up @@ -231,9 +229,9 @@ public function getInvitation(): Invitation
}


public function getStartDate(): ?\DateTimeImmutable
public function getMeetingTime(): ?string
{
return $this->startDate;
return $this->meetingTime;
}


Expand Down

0 comments on commit 3d99067

Please sign in to comment.