Mapper/Module/Schema fixes thanks to new tests

This commit is contained in:
Dennis Eichhorn 2019-02-26 00:00:31 +01:00
parent 718c6ad78a
commit 11b90b0705
2 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ class Cause
private $descriptionRaw = ''; private $descriptionRaw = '';
private $probability = 0.0; private $probability = 0;
private $department = null; private $department = null;
@ -69,12 +69,12 @@ class Cause
$this->category = $category; $this->category = $category;
} }
public function getProbability() : float public function getProbability() : int
{ {
return $this->probability; return $this->probability;
} }
public function setProbability(float $probability) : void public function setProbability(int $probability) : void
{ {
$this->probability = $probability; $this->probability = $probability;
} }

View File

@ -32,7 +32,7 @@ class Solution
private $descriptionRaw = ''; private $descriptionRaw = '';
private $probability = 0.0; private $probability = 0;
private $cause = null; private $cause = null;
@ -67,12 +67,12 @@ class Solution
return $this->cause; return $this->cause;
} }
public function getProbability() : float public function getProbability() : int
{ {
return $this->probability; return $this->probability;
} }
public function setProbability(float $probability) : void public function setProbability(int $probability) : void
{ {
$this->probability = $probability; $this->probability = $probability;
} }