mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-18 22:58:41 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
785c55ceab
commit
338b28f917
|
|
@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $providing = [];
|
||||
protected static array $providing = [];
|
||||
|
||||
/**
|
||||
* Dependencies.
|
||||
|
|
@ -74,7 +74,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $dependencies = [
|
||||
protected static array $dependencies = [
|
||||
'Media',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class CategoryMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_category_id' => ['name' => 'riskmngmt_category_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_category_name' => ['name' => 'riskmngmt_category_name', 'type' => 'string', 'internal' => 'title'],
|
||||
'riskmngmt_category_description' => ['name' => 'riskmngmt_category_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -40,7 +40,7 @@ final class CategoryMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_category';
|
||||
protected static string $table = 'riskmngmt_category';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -48,5 +48,5 @@ final class CategoryMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_category_id';
|
||||
protected static string $primaryField = 'riskmngmt_category_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class CauseMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_cause_id' => ['name' => 'riskmngmt_cause_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_cause_name' => ['name' => 'riskmngmt_cause_name', 'type' => 'string', 'internal' => 'title'],
|
||||
'riskmngmt_cause_description' => ['name' => 'riskmngmt_cause_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -41,7 +41,7 @@ final class CauseMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'risk' => [
|
||||
'mapper' => RiskMapper::class,
|
||||
'dest' => 'riskmngmt_cause_risk',
|
||||
|
|
@ -62,7 +62,7 @@ final class CauseMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_cause';
|
||||
protected static string $table = 'riskmngmt_cause';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -70,5 +70,5 @@ final class CauseMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_cause_id';
|
||||
protected static string $primaryField = 'riskmngmt_cause_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_department_id' => ['name' => 'riskmngmt_department_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_department_department' => ['name' => 'riskmngmt_department_department', 'type' => 'int', 'internal' => 'department'],
|
||||
'riskmngmt_department_responsible' => ['name' => 'riskmngmt_department_responsible', 'type' => 'int', 'internal' => 'responsible'],
|
||||
|
|
@ -37,7 +37,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_department';
|
||||
protected static string $table = 'riskmngmt_department';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -45,7 +45,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_department_id';
|
||||
protected static string $primaryField = 'riskmngmt_department_id';
|
||||
|
||||
/**
|
||||
* Has one relation.
|
||||
|
|
@ -58,7 +58,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'department' => [
|
||||
'mapper' => \Modules\Organization\Models\DepartmentMapper::class,
|
||||
'dest' => 'riskmngmt_department_department',
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ final class ProcessMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_process_id' => ['name' => 'riskmngmt_process_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_process_name' => ['name' => 'riskmngmt_process_name', 'type' => 'string', 'internal' => 'title'],
|
||||
'riskmngmt_process_description' => ['name' => 'riskmngmt_process_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -42,7 +42,7 @@ final class ProcessMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'dest' => 'riskmngmt_cause_risk',
|
||||
|
|
@ -59,7 +59,7 @@ final class ProcessMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_process';
|
||||
protected static string $table = 'riskmngmt_process';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -67,5 +67,5 @@ final class ProcessMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_process_id';
|
||||
protected static string $primaryField = 'riskmngmt_process_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class ProjectMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_project_id' => ['name' => 'riskmngmt_project_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_project_project' => ['name' => 'riskmngmt_project_project', 'type' => 'int', 'internal' => 'project'],
|
||||
'riskmngmt_project_responsible' => ['name' => 'riskmngmt_project_responsible', 'type' => 'int', 'internal' => 'responsible'],
|
||||
|
|
@ -37,7 +37,7 @@ final class ProjectMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_project';
|
||||
protected static string $table = 'riskmngmt_project';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -45,7 +45,7 @@ final class ProjectMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_project_id';
|
||||
protected static string $primaryField = 'riskmngmt_project_id';
|
||||
|
||||
/**
|
||||
* Has one relation.
|
||||
|
|
@ -58,7 +58,7 @@ final class ProjectMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'project' => [
|
||||
'mapper' => \Modules\ProjectManagement\Models\ProjectMapper::class,
|
||||
'dest' => 'riskmngmt_project_project',
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ final class RiskMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_risk_id' => ['name' => 'riskmngmt_risk_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_risk_name' => ['name' => 'riskmngmt_risk_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'riskmngmt_risk_description' => ['name' => 'riskmngmt_risk_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -47,7 +47,7 @@ final class RiskMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
protected static array $hasMany = [
|
||||
'media' => [
|
||||
'mapper' => MediaMapper::class,
|
||||
'table' => 'riskmngmt_risk_media',
|
||||
|
|
@ -80,7 +80,7 @@ final class RiskMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'project' => [
|
||||
'mapper' => ProjectMapper::class,
|
||||
'dest' => 'riskmngmt_risk_project',
|
||||
|
|
@ -109,7 +109,7 @@ final class RiskMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_risk';
|
||||
protected static string $table = 'riskmngmt_risk';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -117,5 +117,5 @@ final class RiskMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_risk_id';
|
||||
protected static string $primaryField = 'riskmngmt_risk_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class RiskObjectMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_risk_object_id' => ['name' => 'riskmngmt_risk_object_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_risk_object_name' => ['name' => 'riskmngmt_risk_object_name', 'type' => 'string', 'internal' => 'title'],
|
||||
'riskmngmt_risk_object_description' => ['name' => 'riskmngmt_risk_object_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -38,7 +38,7 @@ final class RiskObjectMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => RiskMapper::class,
|
||||
'dest' => 'riskmngmt_risk_object_risk',
|
||||
|
|
@ -51,7 +51,7 @@ final class RiskObjectMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_risk_object';
|
||||
protected static string $table = 'riskmngmt_risk_object';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -59,5 +59,5 @@ final class RiskObjectMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_risk_object_id';
|
||||
protected static string $primaryField = 'riskmngmt_risk_object_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ final class SolutionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'riskmngmt_solution_id' => ['name' => 'riskmngmt_solution_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'riskmngmt_solution_name' => ['name' => 'riskmngmt_solution_name', 'type' => 'string', 'internal' => 'title'],
|
||||
'riskmngmt_solution_description' => ['name' => 'riskmngmt_solution_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -40,7 +40,7 @@ final class SolutionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'risk' => [
|
||||
'mapper' => RiskMapper::class,
|
||||
'dest' => 'riskmngmt_solution_risk',
|
||||
|
|
@ -57,7 +57,7 @@ final class SolutionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'riskmngmt_solution';
|
||||
protected static string $table = 'riskmngmt_solution';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -65,5 +65,5 @@ final class SolutionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'riskmngmt_solution_id';
|
||||
protected static string $primaryField = 'riskmngmt_solution_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user