chore: Fix unitary tests

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-06 17:34:32 +01:00
parent 6a71fe3372
commit 2ccce01acb
7 changed files with 109 additions and 358 deletions

View File

@@ -36,23 +36,14 @@ defined('APP_ROOT') || die();
*/
class UserProfileData extends DataModelBase implements DataModelInterface
{
/**
* @var int
*/
public $id = 0;
/**
* @var string
*/
public $name = '';
/**
* @var ProfileData
*/
public $profile;
protected ?int $id = null;
protected ?string $name = null;
protected ?ProfileData $profile = null;
/**
* @return string
* @return string|null
*/
public function getName()
public function getName(): ?string
{
return $this->name;
}
@@ -66,9 +57,9 @@ class UserProfileData extends DataModelBase implements DataModelInterface
}
/**
* @return int
* @return int|null
*/
public function getId()
public function getId(): ?int
{
return (int)$this->id;
}