mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 19:38:40 +00:00
76 lines
1.4 KiB
PHP
76 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package Modules\RiskManagement\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\RiskManagement\Models;
|
|
|
|
use Modules\Organization\Models\NullDepartment as NullOrgDepartment;
|
|
|
|
/**
|
|
* Risk Management class.
|
|
*
|
|
* @package Modules\RiskManagement\Models
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
final class Department
|
|
{
|
|
private $id = 0;
|
|
|
|
private $department = null;
|
|
|
|
private $responsible = null;
|
|
|
|
private $deputy = null;
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function getId() : int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getDepartment()
|
|
{
|
|
return $this->department ?? new NullOrgDepartment();
|
|
}
|
|
|
|
public function setDepartment($department)
|
|
{
|
|
$this->department = $department;
|
|
}
|
|
|
|
public function getResponsible()
|
|
{
|
|
return $this->responsible;
|
|
}
|
|
|
|
public function setResponsible($responsible) : void
|
|
{
|
|
$this->responsible = $responsible;
|
|
}
|
|
|
|
public function getDeputy()
|
|
{
|
|
return $this->deputy;
|
|
}
|
|
|
|
public function setDeputy($deputy) : void
|
|
{
|
|
$this->deputy = $deputy;
|
|
}
|
|
}
|