mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-02-08 08:18:40 +00:00
Fix department return type
This commit is contained in:
parent
97a1a7d855
commit
3b4d77d222
|
|
@ -12,8 +12,11 @@
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\RiskManagement\Models;
|
namespace Modules\RiskManagement\Models;
|
||||||
|
|
||||||
|
use Modules\Organization\Models\NullDepartment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Risk Management class.
|
* Risk Management class.
|
||||||
*
|
*
|
||||||
|
|
@ -44,7 +47,7 @@ class Department
|
||||||
|
|
||||||
public function getDepartment()
|
public function getDepartment()
|
||||||
{
|
{
|
||||||
return $this->department;
|
return $this->department ?? new NullDepartment();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setDepartment($department)
|
public function setDepartment($department)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user