inviteId = $invite->getId(); $this->byUserId = $byUser->getId(); } public function getByUserId(): int { return $this->byUserId; } public function getInviteId(): int { return $this->inviteId; } }