Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent d8c9a5c3a7
commit eb5b4366ee
2 changed files with 9 additions and 9 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

@ -76,7 +76,7 @@ class Item
return $this->number; return $this->number;
} }
public function setNumber(int $number) /* : void */ public function setNumber(int $number) : void
{ {
$this->number = $number; $this->number = $number;
} }
@ -86,7 +86,7 @@ class Item
return $this->articleGroup; return $this->articleGroup;
} }
public function setArticleGroup(int $segment) /* : void */ public function setArticleGroup(int $segment) : void
{ {
$this->articleGroup = $segment; $this->articleGroup = $segment;
} }
@ -96,7 +96,7 @@ class Item
return $this->salesGroup; return $this->salesGroup;
} }
public function setSalesGroup(int $segment) /* : void */ public function setSalesGroup(int $segment) : void
{ {
$this->salesGroup = $segment; $this->salesGroup = $segment;
} }
@ -106,7 +106,7 @@ class Item
return $this->productGroup; return $this->productGroup;
} }
public function setProductGroup(int $segment) /* : void */ public function setProductGroup(int $segment) : void
{ {
$this->productGroup = $segment; $this->productGroup = $segment;
} }
@ -116,7 +116,7 @@ class Item
return $this->segment; return $this->segment;
} }
public function setSegment(int $segment) /* : void */ public function setSegment(int $segment) : void
{ {
$this->segment = $segment; $this->segment = $segment;
} }
@ -126,7 +126,7 @@ class Item
return $this->successor; return $this->successor;
} }
public function setSuccessor(int $successor) /* : void */ public function setSuccessor(int $successor) : void
{ {
$this->successor = $successor; $this->successor = $successor;
} }
@ -136,7 +136,7 @@ class Item
return $this->media; return $this->media;
} }
public function addMedia(Media $media) /* : void */ public function addMedia(Media $media) : void
{ {
$this->media[] = $media; $this->media[] = $media;
} }
@ -146,7 +146,7 @@ class Item
return $this->info; return $this->info;
} }
public function setInfo(string $info) /* : void */ public function setInfo(string $info) : void
{ {
$this->info = $info; $this->info = $info;
} }