Nullable+void typehint

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

@ -67,7 +67,7 @@ class Client
return $this->number; return $this->number;
} }
public function setNumber(int $number) /* : void */ public function setNumber(int $number) : void
{ {
$this->number = $number; $this->number = $number;
} }
@ -77,7 +77,7 @@ class Client
return $this->numberReverse; return $this->numberReverse;
} }
public function setReverseNumber($rev_no) /* : void */ public function setReverseNumber($rev_no) : void
{ {
if (!is_scalar($rev_no)) { if (!is_scalar($rev_no)) {
throw new \Exception(); throw new \Exception();
@ -91,7 +91,7 @@ class Client
return $this->status; return $this->status;
} }
public function setStatus(int $status) /* : void */ public function setStatus(int $status) : void
{ {
$this->status = $status; $this->status = $status;
} }
@ -101,7 +101,7 @@ class Client
return $this->type; return $this->type;
} }
public function setType(int $type) /* : void */ public function setType(int $type) : void
{ {
$this->type = $type; $this->type = $type;
} }
@ -111,7 +111,7 @@ class Client
return $this->taxId; return $this->taxId;
} }
public function setTaxId(string $taxId) /* : void */ public function setTaxId(string $taxId) : void
{ {
$this->taxId = $taxId; $this->taxId = $taxId;
} }
@ -136,7 +136,7 @@ class Client
return $this->profile; return $this->profile;
} }
public function setProfile(Profile $profile) /* : void */ public function setProfile(Profile $profile) : void
{ {
$this->profile = $profile; $this->profile = $profile;
} }
@ -146,7 +146,7 @@ class Client
return $this->files; return $this->files;
} }
public function addFile(Media $file) /* : void */ public function addFile(Media $file) : void
{ {
$this->files[] = $file; $this->files[] = $file;
} }