improve array docblock

This commit is contained in:
Dennis Eichhorn 2020-02-08 13:26:44 +01:00
parent a99910ce22
commit 4906e13da6
2 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ final class ContactElementMapper 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 = [

View File

@ -45,7 +45,7 @@ final class ProfileMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array<string, string>>
* @var array<string, array{mapper:string, self:string, by?:string}>
* @since 1.0.0
*/
protected static array $ownsOne = [
@ -62,20 +62,20 @@ final class ProfileMapper extends DataMapperAbstract
/**
* Has many relation.
*
* @var array<string, array<string, null|string>>
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string}>
* @since 1.0.0
*/
protected static array $hasMany = [
'location' => [
'mapper' => AddressMapper::class,
'table' => 'profile_address',
'mapper' => AddressMapper::class,
'table' => 'profile_address',
'external' => 'profile_address_address',
'self' => 'profile_address_profile',
'self' => 'profile_address_profile',
],
'contactElements' => [
'mapper' => ContactElementMapper::class,
'table' => 'profile_contactelement',
'self' => null,
'mapper' => ContactElementMapper::class,
'table' => 'profile_contactelement',
'self' => null,
'external' => 'profile_contactelement_contact',
],
];