Skip to content

Commit

Permalink
feat: set company when creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
aleedhillon committed Feb 20, 2022
1 parent f24cd40 commit 5b4055d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public function createUser(User $user): User
$mtUser->Leverage = $user->getLeverage();
$mtUser->ZipCode = $user->getZipCode();
$mtUser->Agent = $user->getAgent();
$mtUser->Company = $user->getCompany();

$newMtUser = MTUser::CreateDefault();
$result = $mt_user->Add($mtUser, $newMtUser);
Expand Down
13 changes: 13 additions & 0 deletions src/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class User
protected $phone_password;
protected $investor_password;
protected $agent;
protected $company;

/**
* @return mixed
Expand Down Expand Up @@ -237,4 +238,16 @@ public function getAgent()
{
return $this->agent;
}

public function setCompany($company)
{
$this->company = $company;

return $this;
}

public function getCompany()
{
return $this->company;
}
}

0 comments on commit 5b4055d

Please sign in to comment.