mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 11:28:41 +00:00
phpstan fixes
This commit is contained in:
parent
148e53b5d0
commit
a216076265
|
|
@ -50,13 +50,13 @@ class Cause
|
|||
*/
|
||||
public string $descriptionRaw = '';
|
||||
|
||||
private $probability = 0;
|
||||
private int $probability = 0;
|
||||
|
||||
private $department = null;
|
||||
private ?Department $department = null;
|
||||
|
||||
private $risk = null;
|
||||
private ?Risk $risk = null;
|
||||
|
||||
private $category = null;
|
||||
private ?Category $category = null;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ class Department
|
|||
*/
|
||||
protected int $id = 0;
|
||||
|
||||
private $department = null;
|
||||
private ?Department $department = null;
|
||||
|
||||
private $responsible = null;
|
||||
private ?int $responsible = null;
|
||||
|
||||
private $deputy = null;
|
||||
private ?int $deputy = null;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
|
|
@ -50,13 +50,13 @@ class Process
|
|||
*/
|
||||
public string $descriptionRaw = '';
|
||||
|
||||
private $department = null;
|
||||
private ?int $department = null;
|
||||
|
||||
private $responsible = null;
|
||||
private ?int $responsible = null;
|
||||
|
||||
private $deputy = null;
|
||||
private ?int $deputy = null;
|
||||
|
||||
private $unit = 1;
|
||||
private int $unit = 1;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
|
|
@ -32,11 +32,11 @@ class Project
|
|||
*/
|
||||
protected int $id = 0;
|
||||
|
||||
private $project = null;
|
||||
private ?int $project = null;
|
||||
|
||||
private $responsible = null;
|
||||
private ?int $responsible = null;
|
||||
|
||||
private $deputy = null;
|
||||
private ?int $deputy = null;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
|
|
@ -56,31 +56,31 @@ class Risk
|
|||
*/
|
||||
public string $descriptionRaw = '';
|
||||
|
||||
private $unit = 1;
|
||||
private int $unit = 1;
|
||||
|
||||
private $department = null;
|
||||
private ?int $department = null;
|
||||
|
||||
private $category = null;
|
||||
private ?int $category = null;
|
||||
|
||||
private $project = null;
|
||||
private ?int $project = null;
|
||||
|
||||
private $process = null;
|
||||
private ?int $process = null;
|
||||
|
||||
private $responsible = null;
|
||||
private ?int $responsible = null;
|
||||
|
||||
private $deputy = null;
|
||||
private ?int $deputy = null;
|
||||
|
||||
private $histScore = [];
|
||||
private array $histScore = [];
|
||||
|
||||
private $causes = [];
|
||||
private array $causes = [];
|
||||
|
||||
private $solutions = [];
|
||||
private array $solutions = [];
|
||||
|
||||
private $riskObjects = [];
|
||||
private array $riskObjects = [];
|
||||
|
||||
private $media = [];
|
||||
private array $media = [];
|
||||
|
||||
private $createdAt = null;
|
||||
private \DateTimeImmutable $createdAt;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class RiskObject
|
|||
*/
|
||||
public string $descriptionRaw = '';
|
||||
|
||||
private $risk = null;
|
||||
private ?int $risk = null;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
|
|
@ -50,11 +50,11 @@ class Solution
|
|||
*/
|
||||
public string $descriptionRaw = '';
|
||||
|
||||
private $probability = 0;
|
||||
private int $probability = 0;
|
||||
|
||||
private $cause = null;
|
||||
private ?int $cause = null;
|
||||
|
||||
private $risk = null;
|
||||
private ?int $risk = null;
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user