Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent 33277d0ede
commit 5cd4405eba
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

@ -41,7 +41,7 @@ class Audit
$this->createdAt = new \DateTime('now'); $this->createdAt = new \DateTime('now');
} }
public function setType(int $type) /* : void */ public function setType(int $type) : void
{ {
$this->type = $type; $this->type = $type;
} }
@ -51,7 +51,7 @@ class Audit
return $this->type; return $this->type;
} }
public function setSubType(int $subtype) /* : void */ public function setSubType(int $subtype) : void
{ {
$this->subtype = $subtype; $this->subtype = $subtype;
} }
@ -61,7 +61,7 @@ class Audit
return $this->subtype; return $this->subtype;
} }
public function setModule(int $module) /* : void */ public function setModule(int $module) : void
{ {
$this->module = $module; $this->module = $module;
} }
@ -71,7 +71,7 @@ class Audit
return $this->module; return $this->module;
} }
public function setRef(string $ref) /* : void */ public function setRef(string $ref) : void
{ {
$this->ref = $ref; $this->ref = $ref;
} }
@ -81,7 +81,7 @@ class Audit
return $this->ref; return $this->ref;
} }
public function setContent(string $content) /* : void */ public function setContent(string $content) : void
{ {
$this->content = $content; $this->content = $content;
} }
@ -91,7 +91,7 @@ class Audit
return $this->content; return $this->content;
} }
public function setOld(string $old) /* : void */ public function setOld(string $old) : void
{ {
$this->old = $old; $this->old = $old;
} }
@ -101,7 +101,7 @@ class Audit
return $this->old; return $this->old;
} }
public function setNew(string $new) /* : void */ public function setNew(string $new) : void
{ {
$this->new = $new; $this->new = $new;
} }
@ -111,7 +111,7 @@ class Audit
return $this->new; return $this->new;
} }
public function setCreatedBy($createdBy) /* : void */ public function setCreatedBy($createdBy) : void
{ {
$this->createdBy = $createdBy; $this->createdBy = $createdBy;
} }