chore: Implement AccountAclService tests.

Use scoped namespace for simple functions.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-25 23:40:27 +01:00
parent a4c654f44c
commit 796ecbc5fb
46 changed files with 1865 additions and 2533 deletions

View File

@@ -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;
}
}
}