cs and phpstan fixes

This commit is contained in:
Dennis Eichhorn 2020-10-24 17:52:24 +02:00
parent 36bd0deb4d
commit 6f4df0c925
7 changed files with 22 additions and 8 deletions

View File

@ -14,6 +14,8 @@ declare(strict_types=1);
namespace Modules\RiskManagement\Models;
use Modules\Admin\Models\Account;
/**
* Risk Management class.
*
@ -64,9 +66,21 @@ class Category
*/
private $parent = null;
private $responsible = null;
/**
* Responsible person
*
* @var null|Account
* @since 1.0.0
*/
private ?Account $responsible = null;
private $deputy = null;
/**
* Responsible person
*
* @var null|Account
* @since 1.0.0
*/
private ?Account $deputy = null;
/**
* Get id.

View File

@ -46,7 +46,7 @@ final class CauseMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [

View File

@ -58,7 +58,7 @@ final class DepartmentMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [

View File

@ -47,7 +47,7 @@ final class ProcessMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [

View File

@ -58,7 +58,7 @@ final class ProjectMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [

View File

@ -85,7 +85,7 @@ final class RiskMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [

View File

@ -45,7 +45,7 @@ final class SolutionMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [