Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent eae8b72f2d
commit b0ff234654
7 changed files with 45 additions and 0 deletions

View File

@ -35,6 +35,12 @@ final class CauseMapper extends DataMapperAbstract
'riskmngmt_cause_probability' => ['name' => 'riskmngmt_cause_probability', 'type' => 'int', 'internal' => 'probability'],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'risk' => [
'mapper' => RiskMapper::class,

View File

@ -52,6 +52,11 @@ final class DepartmentMapper extends DataMapperAbstract
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/ /**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'department' => [

View File

@ -36,6 +36,12 @@ final class ProcessMapper extends DataMapperAbstract
'riskmngmt_process_deputy' => ['name' => 'riskmngmt_process_deputy', 'type' => 'int', 'internal' => 'deputy'],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'unit' => [
'mapper' => UnitMapper::class,

View File

@ -52,6 +52,11 @@ final class ProjectMapper extends DataMapperAbstract
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/ /**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'project' => [

View File

@ -46,6 +46,11 @@ final class RiskMapper extends DataMapperAbstract
*
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/ /**
* Has many relation.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $hasMany = [
'media' => [
@ -74,6 +79,12 @@ final class RiskMapper extends DataMapperAbstract
],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'project' => [
'mapper' => ProjectMapper::class,

View File

@ -32,6 +32,12 @@ final class RiskObjectMapper extends DataMapperAbstract
'riskmngmt_risk_object_risk' => ['name' => 'riskmngmt_risk_object_risk', 'type' => 'int', 'internal' => 'risk'],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'unit' => [
'mapper' => RiskMapper::class,

View File

@ -34,6 +34,12 @@ final class SolutionMapper extends DataMapperAbstract
'riskmngmt_solution_risk' => ['name' => 'riskmngmt_solution_risk', 'type' => 'int', 'internal' => 'risk'],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'risk' => [
'mapper' => RiskMapper::class,