mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-05 10:48:41 +00:00
Nullable+void typehint
This commit is contained in:
parent
4b5159e754
commit
935d90b269
|
|
@ -36,7 +36,7 @@ class Navigation
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */
|
||||
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||
{
|
||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class ContactElement
|
|||
return $this->id;
|
||||
}
|
||||
|
||||
public function setType(int $type) /* : void */
|
||||
public function setType(int $type) : void
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ class ContactElement
|
|||
return $this->type;
|
||||
}
|
||||
|
||||
public function setSubtype(int $type) /* : void */
|
||||
public function setSubtype(int $type) : void
|
||||
{
|
||||
$this->subtype = $type;
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ class ContactElement
|
|||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue(string $value) /* : void */
|
||||
public function setValue(string $value) : void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
|
@ -78,7 +78,7 @@ class ContactElement
|
|||
return $this->description;
|
||||
}
|
||||
|
||||
public function setDescription(string $description) /* : void */
|
||||
public function setDescription(string $description) : void
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,12 +75,12 @@ class Profile
|
|||
return $this->image;
|
||||
}
|
||||
|
||||
public function setImage(Media $image) /* : void */
|
||||
public function setImage(Media $image) : void
|
||||
{
|
||||
$this->image = $image;
|
||||
}
|
||||
|
||||
public function setAccount(Account $account) /* : void */
|
||||
public function setAccount(Account $account) : void
|
||||
{
|
||||
$this->account = $account;
|
||||
}
|
||||
|
|
@ -90,7 +90,7 @@ class Profile
|
|||
return $this->account ?? new NullAccount();
|
||||
}
|
||||
|
||||
public function setBirthday(\DateTime $birthday) /* : void */
|
||||
public function setBirthday(\DateTime $birthday) : void
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user