oms-RiskManagement/Models/Cause.php
2020-12-03 23:07:33 +01:00

177 lines
2.8 KiB
PHP
Executable File

<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @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 Cause
{
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
public string $title = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
public string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
public string $descriptionRaw = '';
private int $probability = 0;
private ?Department $department = null;
private ?Risk $risk = null;
private ?Category $category = null;
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
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;
}
}