improve array docblock

This commit is contained in:
Dennis Eichhorn 2020-02-08 13:26:44 +01:00
parent f254446a1a
commit 37ac3695c8
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ final class CollectionMapper extends MediaMapper
/** /**
* 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 = [

View File

@ -30,7 +30,7 @@ class MediaMapper 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 = [
@ -53,13 +53,13 @@ class MediaMapper extends DataMapperAbstract
/** /**
* Belongs to. * Belongs to.
* *
* @var array<string, array<string, string>> * @var array<string, array{mapper:string, self:string}>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $belongsTo = [ protected static array $belongsTo = [
'createdBy' => [ 'createdBy' => [
'mapper' => AccountMapper::class, 'mapper' => AccountMapper::class,
'dest' => 'media_created_by', 'self' => 'media_created_by',
], ],
]; ];