oms-RiskManagement/Models/Department.php

77 lines
1.3 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types = 1);
namespace Modules\RiskManagement\Models;
use Modules\Organization\Models\NullDepartment;
/**
* Risk Management class.
*
* @category Modules
* @package Modules\RiskManagement
* @license OMS License 1.0
* @link http://orange-management.com
* @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 NullDepartment();
}
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;
}
}