Skip to content

Commit

Permalink
Fix PHP docs
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Dec 16, 2024
1 parent 5ffae94 commit 41b2630
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 130 deletions.
3 changes: 3 additions & 0 deletions src/Model/Account/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public function getTimeCreated(): int|null
return $this->time_created;
}

/**
* @return int
*/
public function getMultiFactorStatus(): int
{
return $this->multi_factor_status;
Expand Down
5 changes: 4 additions & 1 deletion src/Model/Account/AccountProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getFirstName(): ?string
}

/**
* @return string
* @return string|null
*/
public function getLastName(): ?string
{
Expand Down Expand Up @@ -146,6 +146,9 @@ public function getAvatar(): ?string
return $this->avatar;
}

/**
* @return string|null
*/
public function getInformation(): ?string
{
return $this->information;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Account/Credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getId(): ?int
}

/**
* @return string
* @return string|null
*/
public function getCredential(): string|null
{
Expand Down
133 changes: 11 additions & 122 deletions src/Model/Account/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,6 @@ class Profile
private mixed $birthdate;
private mixed $gender;
private mixed $avatar;
//private mixed $id_number;
//private mixed $ip_register;
//private mixed $register_source;
//private mixed $homepage;
//private mixed $phone;
//private mixed $address_1;
//private mixed $address_2;
//private mixed $item_id;
//private mixed $country;
//private mixed $state;
//private mixed $city;
//private mixed $zip_code;
//private mixed $bank_name;
//private mixed $bank_card;
//private mixed $bank_account;
private mixed $information;

public function __construct(
Expand All @@ -37,21 +22,6 @@ public function __construct(
$birthdate,
$gender,
$avatar,
//$id_number,
//$ip_register,
//$register_source,
//$homepage,
//$phone,
//$address_1,
//$address_2,
//$item_id,
//$country,
//$state,
//$city,
//$zip_code,
//$bank_name,
//$bank_card,
//$bank_account,
$information,
$id = null
) {
Expand All @@ -61,45 +31,36 @@ public function __construct(
$this->birthdate = $birthdate;
$this->gender = $gender;
$this->avatar = $avatar;
//$this->id_number = $id_number;
//$this->ip_register = $ip_register;
//$this->register_source = $register_source;
//$this->homepage = $homepage;
//$this->phone = $phone;
//$this->address_1 = $address_1;
//$this->address_2 = $address_2;
//$this->item_id = $item_id;
//$this->country = $country;
//$this->state = $state;
//$this->city = $city;
//$this->zip_code = $zip_code;
//$this->bank_name = $bank_name;
//$this->bank_card = $bank_card;
//$this->bank_account = $bank_account;
$this->information = $information;
$this->id = $id;
}

/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}

/**
* @return int
*/
public function getUserId(): int
{
return $this->user_id;
}

/**
* @return string
* @return string|null
*/
public function getFirstName(): ?string
{
return $this->first_name;
}

/**
* @return string
* @return string|null
*/
public function getLastName(): ?string
{
Expand Down Expand Up @@ -130,81 +91,9 @@ public function getAvatar(): ?string
return $this->avatar;
}

/* public function getIdNumber(): ?string
{
return $this->id_number;
}
public function getIpRegister(): ?string
{
return $this->ip_register;
}
public function getRegisterSource(): ?string
{
return $this->register_source;
}
public function getHomepage(): ?string
{
return $this->homepage;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function getAddress1(): ?string
{
return $this->address_1;
}
public function getAddress2(): ?string
{
return $this->address_2;
}
public function getItemId(): ?string
{
return $this->item_id;
}
public function getCountry(): ?string
{
return $this->country;
}
public function getState(): ?string
{
return $this->state;
}
public function getCity(): ?string
{
return $this->city;
}
public function getZipCode(): ?string
{
return $this->zip_code;
}
public function getBankName(): ?string
{
return $this->bank_name;
}
public function getBankCard(): ?string
{
return $this->bank_card;
}
public function getBankAccount(): ?string
{
return $this->bank_account;
} */

/**
* @return string|null
*/
public function getInformation(): ?string
{
return $this->information;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Permission/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Resource
{
private $id;
private mixed $id;
private string $title;
private string $section;
private string $module;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Permission/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Role
{
private $id;
private mixed $id;
private string $resource;
private string $section;
private string $module;
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Role/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class Account
{
private $id;
private ?int $user_id;
private mixed $id;
private ?int $user_id;
private string $role;
private string $section;

Expand Down
4 changes: 2 additions & 2 deletions src/Model/Role/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class Resource
{
private $id;
private mixed $id;
private string $name;
private string $title;
private string $section;
private $status;
private mixed $status;

public function __construct(
$name,
Expand Down

0 comments on commit 41b2630

Please sign in to comment.