mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-08 01:16:56 +01:00
chore: Create ApiService tests
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -65,10 +65,7 @@ class UserData extends UserPassData implements DataModelInterface
|
||||
return $this->lastLogin;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastUpdate()
|
||||
public function getLastUpdate(): ?string
|
||||
{
|
||||
return $this->lastUpdate;
|
||||
}
|
||||
@@ -88,111 +85,56 @@ class UserData extends UserPassData implements DataModelInterface
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(string $email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
public function getNotes(): ?string
|
||||
{
|
||||
return $this->notes;
|
||||
}
|
||||
|
||||
public function setNotes(string $notes)
|
||||
{
|
||||
$this->notes = $notes;
|
||||
}
|
||||
|
||||
public function getUserGroupId(): int
|
||||
{
|
||||
return (int)$this->userGroupId;
|
||||
}
|
||||
|
||||
public function setUserGroupId(int $userGroupId)
|
||||
{
|
||||
$this->userGroupId = (int)$userGroupId;
|
||||
}
|
||||
|
||||
public function getUserProfileId(): int
|
||||
{
|
||||
return (int)$this->userProfileId;
|
||||
}
|
||||
|
||||
public function setUserProfileId(int $userProfileId)
|
||||
{
|
||||
$this->userProfileId = (int)$userProfileId;
|
||||
}
|
||||
|
||||
public function isAdminApp(): int
|
||||
{
|
||||
return (int)$this->isAdminApp;
|
||||
}
|
||||
|
||||
public function setIsAdminApp(bool $isAdminApp)
|
||||
{
|
||||
$this->isAdminApp = $isAdminApp;
|
||||
}
|
||||
|
||||
public function isAdminAcc(): int
|
||||
{
|
||||
return (int)$this->isAdminAcc;
|
||||
}
|
||||
|
||||
public function setIsAdminAcc(bool $isAdminAcc)
|
||||
{
|
||||
$this->isAdminAcc = $isAdminAcc;
|
||||
}
|
||||
|
||||
public function isDisabled(): int
|
||||
{
|
||||
return (int)$this->isDisabled;
|
||||
}
|
||||
|
||||
public function setIsDisabled(bool $isDisabled)
|
||||
{
|
||||
$this->isDisabled = $isDisabled;
|
||||
}
|
||||
|
||||
public function isChangePass(): int
|
||||
{
|
||||
return (int)$this->isChangePass;
|
||||
}
|
||||
|
||||
public function setIsChangePass(bool $isChangePass)
|
||||
{
|
||||
$this->isChangePass = $isChangePass;
|
||||
}
|
||||
|
||||
public function isLdap(): int
|
||||
{
|
||||
return (int)$this->isLdap;
|
||||
}
|
||||
|
||||
public function setIsLdap(bool $isLdap)
|
||||
{
|
||||
$this->isLdap = $isLdap;
|
||||
}
|
||||
|
||||
public function getLogin(): ?string
|
||||
{
|
||||
return $this->login;
|
||||
}
|
||||
|
||||
public function setLogin(string $login)
|
||||
{
|
||||
$this->login = $login;
|
||||
}
|
||||
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName(string $name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getUserGroupName(): ?string
|
||||
{
|
||||
return $this->userGroupName;
|
||||
@@ -207,9 +149,4 @@ class UserData extends UserPassData implements DataModelInterface
|
||||
{
|
||||
return $this->ssoLogin;
|
||||
}
|
||||
|
||||
public function setSsoLogin(string $ssoLogin)
|
||||
{
|
||||
$this->ssoLogin = $ssoLogin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user