oms-RiskManagement/Models/Solution.php
2020-11-28 19:26:40 +01:00

187 lines
2.9 KiB
PHP
Executable File

<?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 Solution
{
/**
* 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 ?Cause $cause = null;
private ?Risk $risk = 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;
}
/**
* 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 description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
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;
}
}