improve array docblock

This commit is contained in:
Dennis Eichhorn 2020-02-08 13:26:44 +01:00
parent 4da51d3d20
commit b3da440eb9
3 changed files with 11 additions and 11 deletions

View File

@ -29,7 +29,7 @@ final class DepartmentMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
@ -45,17 +45,17 @@ final class DepartmentMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array{mapper:string, self:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [
'unit' => [
'mapper' => UnitMapper::class,
'dest' => 'organization_department_unit',
'self' => 'organization_department_unit',
],
'parent' => [
'mapper' => self::class,
'dest' => 'organization_department_parent',
'self' => 'organization_department_parent',
],
];

View File

@ -29,7 +29,7 @@ final class PositionMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
@ -45,17 +45,17 @@ final class PositionMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array{mapper:string, self:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [
'parent' => [
'mapper' => self::class,
'dest' => 'organization_position_parent',
'self' => 'organization_position_parent',
],
'department' => [
'mapper' => DepartmentMapper::class,
'dest' => 'organization_position_department',
'self' => 'organization_position_department',
],
];

View File

@ -29,7 +29,7 @@ final class UnitMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
@ -44,13 +44,13 @@ final class UnitMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array{mapper:string, self:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [
'parent' => [
'mapper' => self::class,
'dest' => 'organization_unit_parent',
'self' => 'organization_unit_parent',
],
];