Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent c1e72f011f
commit f8ffabfa2d
4 changed files with 12 additions and 12 deletions

View File

@ -36,7 +36,7 @@ class Navigation
* *
* @since 1.0.0 * @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); $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);

View File

@ -42,7 +42,7 @@ class WikiBadge implements \JsonSerializable
return $this->name; return $this->name;
} }
public function setName(string $name) /* : void */ public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }

View File

@ -44,17 +44,17 @@ class WikiCategory implements \JsonSerializable
return $this->name; return $this->name;
} }
public function setName(string $name) /* : void */ public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
public function getParent() /* : ?int */ public function getParent() : ?int
{ {
return $this->parent; return $this->parent;
} }
public function setParent(int $parent) /* : void */ public function setParent(int $parent) : void
{ {
$this->parent = $parent; $this->parent = $parent;
} }

View File

@ -57,7 +57,7 @@ class WikiDoc implements \JsonSerializable
return $this->language; return $this->language;
} }
public function setLanguage(string $language) /* : void */ public function setLanguage(string $language) : void
{ {
$this->language = $language; $this->language = $language;
} }
@ -67,7 +67,7 @@ class WikiDoc implements \JsonSerializable
return $this->name; return $this->name;
} }
public function setName(string $name) /* : void */ public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
@ -77,7 +77,7 @@ class WikiDoc implements \JsonSerializable
return $this->doc; return $this->doc;
} }
public function setDoc(string $doc) /* : void */ public function setDoc(string $doc) : void
{ {
$this->doc = $doc; $this->doc = $doc;
} }
@ -87,7 +87,7 @@ class WikiDoc implements \JsonSerializable
return $this->status; return $this->status;
} }
public function setStatus(int $status) /* : void */ public function setStatus(int $status) : void
{ {
$this->status = $status; $this->status = $status;
} }
@ -97,7 +97,7 @@ class WikiDoc implements \JsonSerializable
return $this->category; return $this->category;
} }
public function setCategory(int $category) /* : void */ public function setCategory(int $category) : void
{ {
$this->category = $category; $this->category = $category;
} }
@ -107,7 +107,7 @@ class WikiDoc implements \JsonSerializable
return $this->createdBy; return $this->createdBy;
} }
public function setCreatedBy(int $id) /* : void */ public function setCreatedBy(int $id) : void
{ {
$this->createdBy = $id; $this->createdBy = $id;
} }
@ -122,7 +122,7 @@ class WikiDoc implements \JsonSerializable
return $this->badges; return $this->badges;
} }
public function addBadge($badge) /* : void */ public function addBadge($badge) : void
{ {
$this->badges[] = $badge; $this->badges[] = $badge;
} }