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
*/
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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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