Skip to content

Commit

Permalink
add plan id
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed May 22, 2022
1 parent 752b84c commit 04327e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Model/User.php
Expand Up @@ -39,8 +39,9 @@ class User implements UserInterface
private string $email;
private int $points;
private ?string $externalId;
private ?string $planId;

public function __construct(bool $anonymous, int $id, int $roleId, int $categoryId, int $status, string $name, string $email, int $points, ?string $externalId = null)
public function __construct(bool $anonymous, int $id, int $roleId, int $categoryId, int $status, string $name, string $email, int $points, ?string $externalId = null, ?string $planId = null)
{
$this->anonymous = $anonymous;
$this->id = $id;
Expand All @@ -51,6 +52,7 @@ public function __construct(bool $anonymous, int $id, int $roleId, int $category
$this->email = $email;
$this->points = $points;
$this->externalId = $externalId;
$this->planId = $planId;
}

public function isAnonymous(): bool
Expand Down Expand Up @@ -97,4 +99,9 @@ public function getExternalId(): ?string
{
return $this->externalId;
}

public function getPlanId(): ?string
{
return $this->planId;
}
}
2 changes: 2 additions & 0 deletions src/Model/UserInterface.php
Expand Up @@ -47,4 +47,6 @@ public function getEmail(): string;
public function getPoints(): int;

public function getExternalId(): ?string;

public function getPlanId(): ?string;
}

0 comments on commit 04327e6

Please sign in to comment.