Nullable+void typehint

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

@ -52,7 +52,7 @@ class Category
return $this->parent; return $this->parent;
} }
public function setParent($parent) /* : void */ public function setParent($parent) : void
{ {
$this->parent = $parent; $this->parent = $parent;
} }
@ -62,12 +62,12 @@ class Category
return $this->responsible; return $this->responsible;
} }
public function setResponsible($responsible) /* : void */ public function setResponsible($responsible) : void
{ {
$this->responsible = $responsible; $this->responsible = $responsible;
} }
public function setDeputy($deputy) /* : void */ public function setDeputy($deputy) : void
{ {
$this->deputy = $deputy; $this->deputy = $deputy;
} }
@ -97,7 +97,7 @@ class Category
return $this->descriptionRaw; return $this->descriptionRaw;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }

View File

@ -49,7 +49,7 @@ class Cause
return $this->id; return $this->id;
} }
public function setRisk($risk) /* : void */ public function setRisk($risk) : void
{ {
$this->risk = $risk; $this->risk = $risk;
} }
@ -64,7 +64,7 @@ class Cause
return $this->category; return $this->category;
} }
public function setCategory($category) /* : void */ public function setCategory($category) : void
{ {
$this->category = $category; $this->category = $category;
} }
@ -74,7 +74,7 @@ class Cause
return $this->probability; return $this->probability;
} }
public function setProbability(float $probability) /* : void */ public function setProbability(float $probability) : void
{ {
$this->probability = $probability; $this->probability = $probability;
} }
@ -84,7 +84,7 @@ class Cause
return $this->department; return $this->department;
} }
public function setDepartment($department) /* : void */ public function setDepartment($department) : void
{ {
$this->department = $department; $this->department = $department;
} }
@ -109,7 +109,7 @@ class Cause
return $this->descriptionRaw; return $this->descriptionRaw;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }

View File

@ -58,7 +58,7 @@ class Department
return $this->responsible; return $this->responsible;
} }
public function setResponsible($responsible) /* : void */ public function setResponsible($responsible) : void
{ {
$this->responsible = $responsible; $this->responsible = $responsible;
} }
@ -68,7 +68,7 @@ class Department
return $this->deputy; return $this->deputy;
} }
public function setDeputy($deputy) /* : void */ public function setDeputy($deputy) : void
{ {
$this->deputy = $deputy; $this->deputy = $deputy;
} }

View File

@ -69,7 +69,7 @@ class Process
return $this->descriptionRaw; return $this->descriptionRaw;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }
@ -99,7 +99,7 @@ class Process
return $this->responsible; return $this->responsible;
} }
public function setResponsible($responsible) /* : void */ public function setResponsible($responsible) : void
{ {
$this->responsible = $responsible; $this->responsible = $responsible;
} }
@ -109,7 +109,7 @@ class Process
return $this->deputy; return $this->deputy;
} }
public function setDeputy($deputy) /* : void */ public function setDeputy($deputy) : void
{ {
$this->deputy = $deputy; $this->deputy = $deputy;
} }

View File

@ -56,7 +56,7 @@ class Project
return $this->responsible; return $this->responsible;
} }
public function setResponsible($responsible) /* : void */ public function setResponsible($responsible) : void
{ {
$this->responsible = $responsible; $this->responsible = $responsible;
} }
@ -66,7 +66,7 @@ class Project
return $this->deputy; return $this->deputy;
} }
public function setDeputy($deputy) /* : void */ public function setDeputy($deputy) : void
{ {
$this->deputy = $deputy; $this->deputy = $deputy;
} }

View File

@ -65,7 +65,7 @@ class Risk
return $this->id; return $this->id;
} }
public function addCause($cause) /* : void */ public function addCause($cause) : void
{ {
$this->causes[] = $cause; $this->causes[] = $cause;
} }
@ -90,12 +90,12 @@ class Risk
return $this->media; return $this->media;
} }
public function addMedia($media) /* : void */ public function addMedia($media) : void
{ {
$this->media[] = $media; $this->media[] = $media;
} }
public function addRiskObject($object) /* : void */ public function addRiskObject($object) : void
{ {
$this->riskObjects[] = $object; $this->riskObjects[] = $object;
} }
@ -105,7 +105,7 @@ class Risk
return $this->riskObjects; return $this->riskObjects;
} }
public function addHistory($history) /* : void */ public function addHistory($history) : void
{ {
$this->histScore[] = $history; $this->histScore[] = $history;
} }
@ -120,7 +120,7 @@ class Risk
return $this->name; return $this->name;
} }
public function setName(string $name) /* : void */ public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
@ -130,7 +130,7 @@ class Risk
return $this->description; return $this->description;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }
@ -145,7 +145,7 @@ class Risk
return $this->unit; return $this->unit;
} }
public function setUnit($unit) /* : void */ public function setUnit($unit) : void
{ {
$this->unit = $unit; $this->unit = $unit;
} }
@ -155,7 +155,7 @@ class Risk
return $this->department; return $this->department;
} }
public function setDepartment($department) /* : void */ public function setDepartment($department) : void
{ {
$this->department = $department; $this->department = $department;
} }
@ -165,7 +165,7 @@ class Risk
return $this->category; return $this->category;
} }
public function setCategory($category) /* : void */ public function setCategory($category) : void
{ {
$this->category = $category; $this->category = $category;
} }
@ -175,7 +175,7 @@ class Risk
return $this->project; return $this->project;
} }
public function setProject($project) /* : void */ public function setProject($project) : void
{ {
$this->project = $project; $this->project = $project;
} }
@ -185,7 +185,7 @@ class Risk
return $this->process; return $this->process;
} }
public function setProcess($process) /* : void */ public function setProcess($process) : void
{ {
$this->process = $process; $this->process = $process;
} }
@ -195,7 +195,7 @@ class Risk
return $this->responsible; return $this->responsible;
} }
public function setResponsible($responsible) /* : void */ public function setResponsible($responsible) : void
{ {
$this->responsible = $responsible; $this->responsible = $responsible;
} }
@ -205,7 +205,7 @@ class Risk
return $this->deputy; return $this->deputy;
} }
public function setDeputy($deputy) /* : void */ public function setDeputy($deputy) : void
{ {
$this->deputy = $deputy; $this->deputy = $deputy;
} }

View File

@ -48,7 +48,7 @@ class RiskObject
return $this->risk; return $this->risk;
} }
public function setRisk($risk) /* : void */ public function setRisk($risk) : void
{ {
$this->risk = $risk; $this->risk = $risk;
} }
@ -58,7 +58,7 @@ class RiskObject
return $this->title; return $this->title;
} }
public function setTitle(string $title) /* : void */ public function setTitle(string $title) : void
{ {
$this->title = $title; $this->title = $title;
} }
@ -73,7 +73,7 @@ class RiskObject
return $this->descriptionRaw; return $this->descriptionRaw;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }

View File

@ -47,7 +47,7 @@ class Solution
return $this->id; return $this->id;
} }
public function setRisk($risk) /* : void */ public function setRisk($risk) : void
{ {
$this->risk = $risk; $this->risk = $risk;
} }
@ -57,7 +57,7 @@ class Solution
return $this->risk; return $this->risk;
} }
public function setCause($cause) /* : void */ public function setCause($cause) : void
{ {
$this->cause = $cause; $this->cause = $cause;
} }
@ -72,7 +72,7 @@ class Solution
return $this->probability; return $this->probability;
} }
public function setProbability(float $probability) /* : void */ public function setProbability(float $probability) : void
{ {
$this->probability = $probability; $this->probability = $probability;
} }
@ -97,7 +97,7 @@ class Solution
return $this->descriptionRaw; return $this->descriptionRaw;
} }
public function setDescriptionRaw(string $description) /* : void */ public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }