mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-05 08:04:09 +01:00
chore: Implement AccountAclService tests.
Use scoped namespace for simple functions. Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -48,14 +48,6 @@ class UserProfileData extends DataModelBase implements DataModelInterface
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
@@ -65,26 +57,10 @@ class UserProfileData extends DataModelBase implements DataModelInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
* @return \SP\DataModel\ProfileData|null
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = (int)$id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProfileData
|
||||
*/
|
||||
public function getProfile()
|
||||
public function getProfile(): ?ProfileData
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProfileData $profile
|
||||
*/
|
||||
public function setProfile(ProfileData $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user