mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-02-07 07:48:40 +00:00
cleanup and tests added for ci/cd
This commit is contained in:
parent
9187c9c8fb
commit
fdba6bb996
|
|
@ -33,6 +33,7 @@ class Category
|
||||||
protected int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
||||||
private $title = '';
|
private $title = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
|
|
@ -66,41 +67,105 @@ class Category
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get parent category.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getParent()
|
public function getParent()
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set parent category.
|
||||||
|
*
|
||||||
|
* @param mixed $parent Parent category
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setParent($parent) : void
|
public function setParent($parent) : void
|
||||||
{
|
{
|
||||||
$this->parent = $parent;
|
$this->parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get responsible.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getResponsible()
|
public function getResponsible()
|
||||||
{
|
{
|
||||||
return $this->responsible;
|
return $this->responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set responsible.
|
||||||
|
*
|
||||||
|
* @param mixed $responsible Responsible
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setResponsible($responsible) : void
|
public function setResponsible($responsible) : void
|
||||||
{
|
{
|
||||||
$this->responsible = $responsible;
|
$this->responsible = $responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set deputy.
|
||||||
|
*
|
||||||
|
* @param mixed $deputy Deputy
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDeputy($deputy) : void
|
public function setDeputy($deputy) : void
|
||||||
{
|
{
|
||||||
$this->deputy = $deputy;
|
$this->deputy = $deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deputy.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDeputy()
|
public function getDeputy()
|
||||||
{
|
{
|
||||||
return $this->deputy;
|
return $this->deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get title.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getTitle() : string
|
public function getTitle() : string
|
||||||
{
|
{
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set title.
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setTitle(string $title) : void
|
public function setTitle(string $title) : void
|
||||||
{
|
{
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
|
@ -118,11 +183,27 @@ class Category
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ class Cause
|
||||||
protected int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
||||||
private $title = '';
|
private $title = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
|
|
@ -40,6 +41,7 @@ class Cause
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $description = '';
|
private string $description = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
|
|
@ -68,51 +70,131 @@ class Cause
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set risk.
|
||||||
|
*
|
||||||
|
* @param mixed $risk Risk
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setRisk($risk) : void
|
public function setRisk($risk) : void
|
||||||
{
|
{
|
||||||
$this->risk = $risk;
|
$this->risk = $risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get risk.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getRisk()
|
public function getRisk()
|
||||||
{
|
{
|
||||||
return $this->risk;
|
return $this->risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get category.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getCategory()
|
public function getCategory()
|
||||||
{
|
{
|
||||||
return $this->category;
|
return $this->category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set category.
|
||||||
|
*
|
||||||
|
* @param mixed $category Category
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setCategory($category) : void
|
public function setCategory($category) : void
|
||||||
{
|
{
|
||||||
$this->category = $category;
|
$this->category = $category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get probability.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getProbability() : int
|
public function getProbability() : int
|
||||||
{
|
{
|
||||||
return $this->probability;
|
return $this->probability;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set probability.
|
||||||
|
*
|
||||||
|
* @param int $probability Probability
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setProbability(int $probability) : void
|
public function setProbability(int $probability) : void
|
||||||
{
|
{
|
||||||
$this->probability = $probability;
|
$this->probability = $probability;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get department.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDepartment()
|
public function getDepartment()
|
||||||
{
|
{
|
||||||
return $this->department;
|
return $this->department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set department.
|
||||||
|
*
|
||||||
|
* @param mixed $department Department
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDepartment($department) : void
|
public function setDepartment($department) : void
|
||||||
{
|
{
|
||||||
$this->department = $department;
|
$this->department = $department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get title.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getTitle() : string
|
public function getTitle() : string
|
||||||
{
|
{
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set title.
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setTitle(string $title) : void
|
public function setTitle(string $title) : void
|
||||||
{
|
{
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
|
@ -130,11 +212,27 @@ class Cause
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description.
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
|
|
|
||||||
|
|
@ -52,31 +52,79 @@ class Department
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get department.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDepartment()
|
public function getDepartment()
|
||||||
{
|
{
|
||||||
return $this->department ?? new NullOrgDepartment();
|
return $this->department ?? new NullOrgDepartment();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set department.
|
||||||
|
*
|
||||||
|
* @param mixed $department Department
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDepartment($department) : void
|
public function setDepartment($department) : void
|
||||||
{
|
{
|
||||||
$this->department = $department;
|
$this->department = $department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get responsible.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getResponsible()
|
public function getResponsible()
|
||||||
{
|
{
|
||||||
return $this->responsible;
|
return $this->responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set responsible.
|
||||||
|
*
|
||||||
|
* @param mixed $responsible Responsible
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setResponsible($responsible) : void
|
public function setResponsible($responsible) : void
|
||||||
{
|
{
|
||||||
$this->responsible = $responsible;
|
$this->responsible = $responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deputy.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDeputy()
|
public function getDeputy()
|
||||||
{
|
{
|
||||||
return $this->deputy;
|
return $this->deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set deputy.
|
||||||
|
*
|
||||||
|
* @param mixed $deputy Deputy
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDeputy($deputy) : void
|
public function setDeputy($deputy) : void
|
||||||
{
|
{
|
||||||
$this->deputy = $deputy;
|
$this->deputy = $deputy;
|
||||||
|
|
|
||||||
|
|
@ -68,11 +68,27 @@ class Process
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get title.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getTitle() : string
|
public function getTitle() : string
|
||||||
{
|
{
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set title.
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setTitle(string $title) : void
|
public function setTitle(string $title) : void
|
||||||
{
|
{
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
|
@ -90,51 +106,131 @@ class Process
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description.
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get unit.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getUnit()
|
public function getUnit()
|
||||||
{
|
{
|
||||||
return $this->unit;
|
return $this->unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set unit.
|
||||||
|
*
|
||||||
|
* @param mixed $unit Unit
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setUnit($unit) : void
|
public function setUnit($unit) : void
|
||||||
{
|
{
|
||||||
$this->unit = $unit;
|
$this->unit = $unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get department.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDepartment()
|
public function getDepartment()
|
||||||
{
|
{
|
||||||
return $this->department;
|
return $this->department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set department.
|
||||||
|
*
|
||||||
|
* @param mixed $department Department
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDepartment($department) : void
|
public function setDepartment($department) : void
|
||||||
{
|
{
|
||||||
$this->department = $department;
|
$this->department = $department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get responsible.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getResponsible()
|
public function getResponsible()
|
||||||
{
|
{
|
||||||
return $this->responsible;
|
return $this->responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set responsible.
|
||||||
|
*
|
||||||
|
* @param mixed $responsible Responsible
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setResponsible($responsible) : void
|
public function setResponsible($responsible) : void
|
||||||
{
|
{
|
||||||
$this->responsible = $responsible;
|
$this->responsible = $responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deputy.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDeputy()
|
public function getDeputy()
|
||||||
{
|
{
|
||||||
return $this->deputy;
|
return $this->deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set deputy.
|
||||||
|
*
|
||||||
|
* @param mixed $deputy Deputy
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDeputy($deputy) : void
|
public function setDeputy($deputy) : void
|
||||||
{
|
{
|
||||||
$this->deputy = $deputy;
|
$this->deputy = $deputy;
|
||||||
|
|
|
||||||
|
|
@ -50,31 +50,79 @@ class Project
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get project.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getProject()
|
public function getProject()
|
||||||
{
|
{
|
||||||
return $this->project;
|
return $this->project;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set project.
|
||||||
|
*
|
||||||
|
* @param mixed $project Project
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setProject($project) : void
|
public function setProject($project) : void
|
||||||
{
|
{
|
||||||
$this->project = $project;
|
$this->project = $project;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get responsible.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getResponsible()
|
public function getResponsible()
|
||||||
{
|
{
|
||||||
return $this->responsible;
|
return $this->responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set responsible.
|
||||||
|
*
|
||||||
|
* @param mixed $responsible Responsible
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setResponsible($responsible) : void
|
public function setResponsible($responsible) : void
|
||||||
{
|
{
|
||||||
$this->responsible = $responsible;
|
$this->responsible = $responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deputy.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDeputy()
|
public function getDeputy()
|
||||||
{
|
{
|
||||||
return $this->deputy;
|
return $this->deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set deputy.
|
||||||
|
*
|
||||||
|
* @param mixed $deputy Deputy
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDeputy($deputy) : void
|
public function setDeputy($deputy) : void
|
||||||
{
|
{
|
||||||
$this->deputy = $deputy;
|
$this->deputy = $deputy;
|
||||||
|
|
|
||||||
210
Models/Risk.php
210
Models/Risk.php
|
|
@ -102,51 +102,131 @@ class Risk
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add cause.
|
||||||
|
*
|
||||||
|
* @param mixed $cause Cause
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function addCause($cause) : void
|
public function addCause($cause) : void
|
||||||
{
|
{
|
||||||
$this->causes[] = $cause;
|
$this->causes[] = $cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get causes
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getCauses() : array
|
public function getCauses() : array
|
||||||
{
|
{
|
||||||
return $this->causes;
|
return $this->causes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addSolution($solution) : void /* : solution */
|
/**
|
||||||
|
* Add solution.
|
||||||
|
*
|
||||||
|
* @param mixed $solution Solution
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function addSolution($solution) : void
|
||||||
{
|
{
|
||||||
$this->solutions[] = $solution;
|
$this->solutions[] = $solution;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get solutions
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getSolutions() : array
|
public function getSolutions() : array
|
||||||
{
|
{
|
||||||
return $this->solutions;
|
return $this->solutions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get media
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getMedia() : array
|
public function getMedia() : array
|
||||||
{
|
{
|
||||||
return $this->media;
|
return $this->media;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add media.
|
||||||
|
*
|
||||||
|
* @param mixed $media Media
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function addMedia($media) : void
|
public function addMedia($media) : void
|
||||||
{
|
{
|
||||||
$this->media[] = $media;
|
$this->media[] = $media;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add risk object.
|
||||||
|
*
|
||||||
|
* @param mixed $object Risk object
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function addRiskObject($object) : void
|
public function addRiskObject($object) : void
|
||||||
{
|
{
|
||||||
$this->riskObjects[] = $object;
|
$this->riskObjects[] = $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get risk objects
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getRiskObjects() : array
|
public function getRiskObjects() : array
|
||||||
{
|
{
|
||||||
return $this->riskObjects;
|
return $this->riskObjects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add history.
|
||||||
|
*
|
||||||
|
* @param mixed $history History
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function addHistory($history) : void
|
public function addHistory($history) : void
|
||||||
{
|
{
|
||||||
$this->histScore[] = $history;
|
$this->histScore[] = $history;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get history
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getHistory() : array
|
public function getHistory() : array
|
||||||
{
|
{
|
||||||
return $this->histScore;
|
return $this->histScore;
|
||||||
|
|
@ -190,81 +270,209 @@ class Risk
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description.
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get unit.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getUnit()
|
public function getUnit()
|
||||||
{
|
{
|
||||||
return $this->unit;
|
return $this->unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set unit.
|
||||||
|
*
|
||||||
|
* @param mixed $unit Unit
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setUnit($unit) : void
|
public function setUnit($unit) : void
|
||||||
{
|
{
|
||||||
$this->unit = $unit;
|
$this->unit = $unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get department.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDepartment()
|
public function getDepartment()
|
||||||
{
|
{
|
||||||
return $this->department;
|
return $this->department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set department.
|
||||||
|
*
|
||||||
|
* @param mixed $department Department
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDepartment($department) : void
|
public function setDepartment($department) : void
|
||||||
{
|
{
|
||||||
$this->department = $department;
|
$this->department = $department;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get category.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getCategory()
|
public function getCategory()
|
||||||
{
|
{
|
||||||
return $this->category;
|
return $this->category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set category.
|
||||||
|
*
|
||||||
|
* @param mixed $category Category
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setCategory($category) : void
|
public function setCategory($category) : void
|
||||||
{
|
{
|
||||||
$this->category = $category;
|
$this->category = $category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get project.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getProject()
|
public function getProject()
|
||||||
{
|
{
|
||||||
return $this->project;
|
return $this->project;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set project.
|
||||||
|
*
|
||||||
|
* @param mixed $project Project
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setProject($project) : void
|
public function setProject($project) : void
|
||||||
{
|
{
|
||||||
$this->project = $project;
|
$this->project = $project;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get process.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getProcess()
|
public function getProcess()
|
||||||
{
|
{
|
||||||
return $this->process;
|
return $this->process;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set process.
|
||||||
|
*
|
||||||
|
* @param mixed $process Process
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setProcess($process) : void
|
public function setProcess($process) : void
|
||||||
{
|
{
|
||||||
$this->process = $process;
|
$this->process = $process;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get responsible.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getResponsible()
|
public function getResponsible()
|
||||||
{
|
{
|
||||||
return $this->responsible;
|
return $this->responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set responsible.
|
||||||
|
*
|
||||||
|
* @param mixed $responsible Responsible
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setResponsible($responsible) : void
|
public function setResponsible($responsible) : void
|
||||||
{
|
{
|
||||||
$this->responsible = $responsible;
|
$this->responsible = $responsible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deputy.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDeputy()
|
public function getDeputy()
|
||||||
{
|
{
|
||||||
return $this->deputy;
|
return $this->deputy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set deputy.
|
||||||
|
*
|
||||||
|
* @param mixed $deputy Deputy
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDeputy($deputy) : void
|
public function setDeputy($deputy) : void
|
||||||
{
|
{
|
||||||
$this->deputy = $deputy;
|
$this->deputy = $deputy;
|
||||||
|
|
|
||||||
|
|
@ -62,21 +62,53 @@ class RiskObject
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get risk.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getRisk()
|
public function getRisk()
|
||||||
{
|
{
|
||||||
return $this->risk;
|
return $this->risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set risk.
|
||||||
|
*
|
||||||
|
* @param mixed $risk Risk
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setRisk($risk) : void
|
public function setRisk($risk) : void
|
||||||
{
|
{
|
||||||
$this->risk = $risk;
|
$this->risk = $risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get title.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getTitle() : string
|
public function getTitle() : string
|
||||||
{
|
{
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set title.
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setTitle(string $title) : void
|
public function setTitle(string $title) : void
|
||||||
{
|
{
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
|
@ -94,11 +126,27 @@ class RiskObject
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description.
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package Modules\RiskManagement\Models
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\RiskManagement\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Risk Management class.
|
||||||
|
*
|
||||||
|
* @package Modules\RiskManagement\Models
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class RiskObjectScore
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package Modules\RiskManagement\Models
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\RiskManagement\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Risk Management class.
|
||||||
|
*
|
||||||
|
* @package Modules\RiskManagement\Models
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class RiskScore
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -66,41 +66,105 @@ class Solution
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set risk.
|
||||||
|
*
|
||||||
|
* @param mixed $risk Risk
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setRisk($risk) : void
|
public function setRisk($risk) : void
|
||||||
{
|
{
|
||||||
$this->risk = $risk;
|
$this->risk = $risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get risk.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getRisk()
|
public function getRisk()
|
||||||
{
|
{
|
||||||
return $this->risk;
|
return $this->risk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set cause.
|
||||||
|
*
|
||||||
|
* @param mixed $cause Cause
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setCause($cause) : void
|
public function setCause($cause) : void
|
||||||
{
|
{
|
||||||
$this->cause = $cause;
|
$this->cause = $cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get cause.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getCause()
|
public function getCause()
|
||||||
{
|
{
|
||||||
return $this->cause;
|
return $this->cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get probability.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getProbability() : int
|
public function getProbability() : int
|
||||||
{
|
{
|
||||||
return $this->probability;
|
return $this->probability;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set probability.
|
||||||
|
*
|
||||||
|
* @param int $probability Probability
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setProbability(int $probability) : void
|
public function setProbability(int $probability) : void
|
||||||
{
|
{
|
||||||
$this->probability = $probability;
|
$this->probability = $probability;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get title.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getTitle() : string
|
public function getTitle() : string
|
||||||
{
|
{
|
||||||
return $this->title;
|
return $this->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set title.
|
||||||
|
*
|
||||||
|
* @param string $title Title
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setTitle(string $title) : void
|
public function setTitle(string $title) : void
|
||||||
{
|
{
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
|
@ -118,11 +182,27 @@ class Solution
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get raw description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getDescriptionRaw() : string
|
public function getDescriptionRaw() : string
|
||||||
{
|
{
|
||||||
return $this->descriptionRaw;
|
return $this->descriptionRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set raw description.
|
||||||
|
*
|
||||||
|
* @param string $description Description
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setDescriptionRaw(string $description) : void
|
public function setDescriptionRaw(string $description) : void
|
||||||
{
|
{
|
||||||
$this->descriptionRaw = $description;
|
$this->descriptionRaw = $description;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user