oms-RiskManagement/Models/Department.php

76 lines
1.3 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @package TBD
* @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
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
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;
}
}