Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent 4b5159e754
commit 935d90b269
3 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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