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. * 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 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [

View File

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