cleanup and tests added for ci/cd

This commit is contained in:
Dennis Eichhorn 2019-11-20 22:28:04 +01:00
parent 9187c9c8fb
commit fdba6bb996
10 changed files with 762 additions and 1 deletions

View File

@ -33,6 +33,7 @@ class Category
protected int $id = 0;
private $title = '';
/**
* Description.
*
@ -66,41 +67,105 @@ class Category
return $this->id;
}
/**
* Get parent category.
*
* @return mixed
*
* @since 1.0.0
*/
public function getParent()
{
return $this->parent;
}
/**
* Set parent category.
*
* @param mixed $parent Parent category
*
* @return void
*
* @since 1.0.0
*/
public function setParent($parent) : void
{
$this->parent = $parent;
}
/**
* Get responsible.
*
* @return mixed
*
* @since 1.0.0
*/
public function getResponsible()
{
return $this->responsible;
}
/**
* Set responsible.
*
* @param mixed $responsible Responsible
*
* @return void
*
* @since 1.0.0
*/
public function setResponsible($responsible) : void
{
$this->responsible = $responsible;
}
/**
* Set deputy.
*
* @param mixed $deputy Deputy
*
* @return void
*
* @since 1.0.0
*/
public function setDeputy($deputy) : void
{
$this->deputy = $deputy;
}
/**
* Get deputy.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDeputy()
{
return $this->deputy;
}
/**
* Get title.
*
* @return string
*
* @since 1.0.0
*/
public function getTitle() : string
{
return $this->title;
}
/**
* Set title.
*
* @param string $title Title
*
* @return void
*
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
$this->title = $title;
@ -118,11 +183,27 @@ class Category
return $this->description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Set raw description
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;

View File

@ -33,6 +33,7 @@ class Cause
protected int $id = 0;
private $title = '';
/**
* Description.
*
@ -40,6 +41,7 @@ class Cause
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
@ -68,51 +70,131 @@ class Cause
return $this->id;
}
/**
* Set risk.
*
* @param mixed $risk Risk
*
* @return void
*
* @since 1.0.0
*/
public function setRisk($risk) : void
{
$this->risk = $risk;
}
/**
* Get risk.
*
* @return mixed
*
* @since 1.0.0
*/
public function getRisk()
{
return $this->risk;
}
/**
* Get category.
*
* @return mixed
*
* @since 1.0.0
*/
public function getCategory()
{
return $this->category;
}
/**
* Set category.
*
* @param mixed $category Category
*
* @return void
*
* @since 1.0.0
*/
public function setCategory($category) : void
{
$this->category = $category;
}
/**
* Get probability.
*
* @return int
*
* @since 1.0.0
*/
public function getProbability() : int
{
return $this->probability;
}
/**
* Set probability.
*
* @param int $probability Probability
*
* @return void
*
* @since 1.0.0
*/
public function setProbability(int $probability) : void
{
$this->probability = $probability;
}
/**
* Get department.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDepartment()
{
return $this->department;
}
/**
* Set department.
*
* @param mixed $department Department
*
* @return void
*
* @since 1.0.0
*/
public function setDepartment($department) : void
{
$this->department = $department;
}
/**
* Get title.
*
* @return string
*
* @since 1.0.0
*/
public function getTitle() : string
{
return $this->title;
}
/**
* Set title.
*
* @param string $title Title
*
* @return void
*
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
$this->title = $title;
@ -130,11 +212,27 @@ class Cause
return $this->description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Set raw description.
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;

View File

@ -52,31 +52,79 @@ class Department
return $this->id;
}
/**
* Get department.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDepartment()
{
return $this->department ?? new NullOrgDepartment();
}
/**
* Set department.
*
* @param mixed $department Department
*
* @return void
*
* @since 1.0.0
*/
public function setDepartment($department) : void
{
$this->department = $department;
}
/**
* Get responsible.
*
* @return mixed
*
* @since 1.0.0
*/
public function getResponsible()
{
return $this->responsible;
}
/**
* set responsible.
*
* @param mixed $responsible Responsible
*
* @return void
*
* @since 1.0.0
*/
public function setResponsible($responsible) : void
{
$this->responsible = $responsible;
}
/**
* Get deputy.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDeputy()
{
return $this->deputy;
}
/**
* Set deputy.
*
* @param mixed $deputy Deputy
*
* @return void
*
* @since 1.0.0
*/
public function setDeputy($deputy) : void
{
$this->deputy = $deputy;

View File

@ -68,11 +68,27 @@ class Process
return $this->id;
}
/**
* Get title.
*
* @return string
*
* @since 1.0.0
*/
public function getTitle() : string
{
return $this->title;
}
/**
* Set title.
*
* @param string $title Title
*
* @return void
*
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
$this->title = $title;
@ -90,51 +106,131 @@ class Process
return $this->description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Set raw description.
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;
}
/**
* Get unit.
*
* @return mixed
*
* @since 1.0.0
*/
public function getUnit()
{
return $this->unit;
}
/**
* Set unit.
*
* @param mixed $unit Unit
*
* @return void
*
* @since 1.0.0
*/
public function setUnit($unit) : void
{
$this->unit = $unit;
}
/**
* Get department.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDepartment()
{
return $this->department;
}
/**
* Set department.
*
* @param mixed $department Department
*
* @return void
*
* @since 1.0.0
*/
public function setDepartment($department) : void
{
$this->department = $department;
}
/**
* Get responsible.
*
* @return mixed
*
* @since 1.0.0
*/
public function getResponsible()
{
return $this->responsible;
}
/**
* Set responsible.
*
* @param mixed $responsible Responsible
*
* @return void
*
* @since 1.0.0
*/
public function setResponsible($responsible) : void
{
$this->responsible = $responsible;
}
/**
* Get deputy.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDeputy()
{
return $this->deputy;
}
/**
* Set deputy.
*
* @param mixed $deputy Deputy
*
* @return void
*
* @since 1.0.0
*/
public function setDeputy($deputy) : void
{
$this->deputy = $deputy;

View File

@ -50,31 +50,79 @@ class Project
return $this->id;
}
/**
* Get project.
*
* @return mixed
*
* @since 1.0.0
*/
public function getProject()
{
return $this->project;
}
/**
* Set project.
*
* @param mixed $project Project
*
* @return void
*
* @since 1.0.0
*/
public function setProject($project) : void
{
$this->project = $project;
}
/**
* Get responsible.
*
* @return mixed
*
* @since 1.0.0
*/
public function getResponsible()
{
return $this->responsible;
}
/**
* Set responsible.
*
* @param mixed $responsible Responsible
*
* @return void
*
* @since 1.0.0
*/
public function setResponsible($responsible) : void
{
$this->responsible = $responsible;
}
/**
* Get deputy.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDeputy()
{
return $this->deputy;
}
/**
* Set deputy.
*
* @param mixed $deputy Deputy
*
* @return void
*
* @since 1.0.0
*/
public function setDeputy($deputy) : void
{
$this->deputy = $deputy;

View File

@ -102,51 +102,131 @@ class Risk
return $this->id;
}
/**
* Add cause.
*
* @param mixed $cause Cause
*
* @return void
*
* @since 1.0.0
*/
public function addCause($cause) : void
{
$this->causes[] = $cause;
}
/**
* Get causes
*
* @return array
*
* @since 1.0.0
*/
public function getCauses() : array
{
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;
}
/**
* Get solutions
*
* @return array
*
* @since 1.0.0
*/
public function getSolutions() : array
{
return $this->solutions;
}
/**
* Get media
*
* @return array
*
* @since 1.0.0
*/
public function getMedia() : array
{
return $this->media;
}
/**
* Add media.
*
* @param mixed $media Media
*
* @return void
*
* @since 1.0.0
*/
public function addMedia($media) : void
{
$this->media[] = $media;
}
/**
* Add risk object.
*
* @param mixed $object Risk object
*
* @return void
*
* @since 1.0.0
*/
public function addRiskObject($object) : void
{
$this->riskObjects[] = $object;
}
/**
* Get risk objects
*
* @return array
*
* @since 1.0.0
*/
public function getRiskObjects() : array
{
return $this->riskObjects;
}
/**
* Add history.
*
* @param mixed $history History
*
* @return void
*
* @since 1.0.0
*/
public function addHistory($history) : void
{
$this->histScore[] = $history;
}
/**
* Get history
*
* @return array
*
* @since 1.0.0
*/
public function getHistory() : array
{
return $this->histScore;
@ -190,81 +270,209 @@ class Risk
return $this->description;
}
/**
* Set raw description.
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Get unit.
*
* @return mixed
*
* @since 1.0.0
*/
public function getUnit()
{
return $this->unit;
}
/**
* Set unit.
*
* @param mixed $unit Unit
*
* @return void
*
* @since 1.0.0
*/
public function setUnit($unit) : void
{
$this->unit = $unit;
}
/**
* Get department.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDepartment()
{
return $this->department;
}
/**
* Set department.
*
* @param mixed $department Department
*
* @return void
*
* @since 1.0.0
*/
public function setDepartment($department) : void
{
$this->department = $department;
}
/**
* Get category.
*
* @return mixed
*
* @since 1.0.0
*/
public function getCategory()
{
return $this->category;
}
/**
* Set category.
*
* @param mixed $category Category
*
* @return void
*
* @since 1.0.0
*/
public function setCategory($category) : void
{
$this->category = $category;
}
/**
* Get project.
*
* @return mixed
*
* @since 1.0.0
*/
public function getProject()
{
return $this->project;
}
/**
* Set project.
*
* @param mixed $project Project
*
* @return void
*
* @since 1.0.0
*/
public function setProject($project) : void
{
$this->project = $project;
}
/**
* Get process.
*
* @return mixed
*
* @since 1.0.0
*/
public function getProcess()
{
return $this->process;
}
/**
* Set process.
*
* @param mixed $process Process
*
* @return void
*
* @since 1.0.0
*/
public function setProcess($process) : void
{
$this->process = $process;
}
/**
* Get responsible.
*
* @return mixed
*
* @since 1.0.0
*/
public function getResponsible()
{
return $this->responsible;
}
/**
* Set responsible.
*
* @param mixed $responsible Responsible
*
* @return void
*
* @since 1.0.0
*/
public function setResponsible($responsible) : void
{
$this->responsible = $responsible;
}
/**
* Get deputy.
*
* @return mixed
*
* @since 1.0.0
*/
public function getDeputy()
{
return $this->deputy;
}
/**
* Set deputy.
*
* @param mixed $deputy Deputy
*
* @return void
*
* @since 1.0.0
*/
public function setDeputy($deputy) : void
{
$this->deputy = $deputy;

View File

@ -62,21 +62,53 @@ class RiskObject
return $this->id;
}
/**
* Get risk.
*
* @return mixed
*
* @since 1.0.0
*/
public function getRisk()
{
return $this->risk;
}
/**
* Set risk.
*
* @param mixed $risk Risk
*
* @return void
*
* @since 1.0.0
*/
public function setRisk($risk) : void
{
$this->risk = $risk;
}
/**
* Get title.
*
* @return string
*
* @since 1.0.0
*/
public function getTitle() : string
{
return $this->title;
}
/**
* Set title.
*
* @param string $title Title
*
* @return void
*
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
$this->title = $title;
@ -94,11 +126,27 @@ class RiskObject
return $this->description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Set raw description.
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;

View File

@ -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
{
}

View File

@ -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
{
}

View File

@ -66,41 +66,105 @@ class Solution
return $this->id;
}
/**
* Set risk.
*
* @param mixed $risk Risk
*
* @return void
*
* @since 1.0.0
*/
public function setRisk($risk) : void
{
$this->risk = $risk;
}
/**
* Get risk.
*
* @return mixed
*
* @since 1.0.0
*/
public function getRisk()
{
return $this->risk;
}
/**
* Set cause.
*
* @param mixed $cause Cause
*
* @return void
*
* @since 1.0.0
*/
public function setCause($cause) : void
{
$this->cause = $cause;
}
/**
* Get cause.
*
* @return mixed
*
* @since 1.0.0
*/
public function getCause()
{
return $this->cause;
}
/**
* Get probability.
*
* @return int
*
* @since 1.0.0
*/
public function getProbability() : int
{
return $this->probability;
}
/**
* Set probability.
*
* @param int $probability Probability
*
* @return void
*
* @since 1.0.0
*/
public function setProbability(int $probability) : void
{
$this->probability = $probability;
}
/**
* Get title.
*
* @return string
*
* @since 1.0.0
*/
public function getTitle() : string
{
return $this->title;
}
/**
* Set title.
*
* @param string $title Title
*
* @return void
*
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
$this->title = $title;
@ -118,11 +182,27 @@ class Solution
return $this->description;
}
/**
* Get raw description.
*
* @return string
*
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
return $this->descriptionRaw;
}
/**
* Set raw description.
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
$this->descriptionRaw = $description;